Peiyan commited on
Commit
72820ab
·
verified ·
1 Parent(s): 93d8628

Update deployment/docker/serve.sh

Browse files
Files changed (1) hide show
  1. deployment/docker/serve.sh +7 -1
deployment/docker/serve.sh CHANGED
@@ -1,2 +1,8 @@
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"
 
 
 
 
 
 
 
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"