fix: update DB path to /opt/vela-api/data, remove static mount
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -10,7 +10,7 @@ from fastapi.middleware.cors import CORSMiddleware
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
from pydantic import BaseModel
|
||||
|
||||
DB_PATH = os.environ.get("DB_PATH", "/srv/form-backend/submissions.db")
|
||||
DB_PATH = os.environ.get("DB_PATH", "/opt/vela-api/data/submissions.db")
|
||||
STATUSES = ["received", "confirmed", "hardware ready", "installing", "completed", "cancelled"]
|
||||
|
||||
# ---- DB Helpers ----
|
||||
@@ -637,4 +637,4 @@ def health():
|
||||
return {"status": "ok"}
|
||||
|
||||
# Static frontend (must be last)
|
||||
app.mount("/", StaticFiles(directory="/srv/form-backend/static", html=True), name="static")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user