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