updated static path

parent 26664339
Showing with 3 additions and 3 deletions
......@@ -16,7 +16,7 @@ from config import config
app = FastAPI()
# Mount the public directory as a static files directory
app.mount("/public", StaticFiles(directory="public"), name="public")
app.mount("/public", StaticFiles(directory="fastapi/public"), name="public")
app.add_middleware(
CORSMiddleware,
......
......@@ -5,4 +5,4 @@ cp -r react/out/* fastapi/public/
cp fastapi/config-prod.py fastapi/config.py
# Start FastAPI server
(cd fastapi && fastapi run main.py)
\ No newline at end of file
fastapi run fastapi/main.py
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment