Skip to content

Commit

Permalink
set log level to error and mount static properly
Browse files Browse the repository at this point in the history
  • Loading branch information
WasinUddy committed Aug 21, 2024
1 parent 6b67b41 commit 5b5d415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
app = FastAPI()

# Mount static files directory
app.mount("/static", StaticFiles(directory="/app/web/build/assets"), name="static")
app.mount("/assets", StaticFiles(directory="/app/web/build/assets"), name="assets")

# Enable CORS for all origins, methods and headers
app.add_middleware(
Expand Down Expand Up @@ -119,4 +119,4 @@ def liveness():

# Get the port from the environment variable
port = int(os.environ.get("WEBPORT", 8000))
uvicorn.run(app, host="0.0.0.0", port=port)
uvicorn.run(app, host="0.0.0.0", port=port, log_level="error")

0 comments on commit 5b5d415

Please sign in to comment.