Spaces:
Build error
Build error
Update run.sh
Browse files
run.sh
CHANGED
@@ -3,6 +3,6 @@
|
|
3 |
|
4 |
cd backend
|
5 |
# Start FastAPI app in the background on port 8000
|
6 |
-
uvicorn app:app --host 0.0.0.0 --port 8000
|
7 |
# Start Nginx
|
8 |
-
nginx -g 'daemon off;'
|
|
|
3 |
|
4 |
cd backend
|
5 |
# Start FastAPI app in the background on port 8000
|
6 |
+
uvicorn app:app --host 0.0.0.0 --port 8000 --workers 1 & echo $! > http_server.pid
|
7 |
# Start Nginx
|
8 |
+
nginx -g 'daemon off;'
|