Spaces:
Runtime error
Runtime error
Update deployment/docker/serve.sh
Browse files
deployment/docker/serve.sh
CHANGED
@@ -1,7 +1,2 @@
|
|
1 |
#!/bin/bash
|
2 |
-
|
3 |
-
# Start nginx in the background
|
4 |
-
nginx -g "daemon off;" &
|
5 |
-
|
6 |
-
# Change directory to backend and start Gunicorn
|
7 |
-
cd backend && exec gunicorn -b 0.0.0.0:5000 --workers=3 -t 600 app:app
|
|
|
1 |
#!/bin/bash
|
2 |
+
nohup nginx -g "daemon off;" & cd backend && gunicorn -b 0.0.0.0:5000 --workers=3 -t 600 "app:app" "$1"
|
|
|
|
|
|
|
|
|
|