mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-11 04:07:44 +02:00
[eric] runner: per-app VM image boots a published bundle from storage and serves backend + frontend from one process (ENG-293)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
"""One process serves the published app: its own FastAPI backend at /api/* plus the built
|
||||
frontend at /. Imported by uvicorn AFTER boot.py unpacked the bundle into /data/app."""
|
||||
from backend.main import app
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
|
||||
app.mount("/", StaticFiles(directory="/data/app", html=True), name="frontend")
|
||||
Reference in New Issue
Block a user