Azeez98 commited on
Commit
4611af7
·
verified ·
1 Parent(s): 70115d2

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +4 -5
start.sh CHANGED
@@ -1,7 +1,6 @@
1
  #!/bin/bash
 
 
2
 
3
- # Start Nginx as root to bind to port 80
4
- nginx -g "daemon off;"
5
-
6
- # Switch to non-root user for running Django (if applicable)
7
- su -s /bin/bash user -c "gunicorn your_project.wsgi:application --bind 0.0.0.0:7860"
 
1
  #!/bin/bash
2
+ # Start Nginx on port 8080 (Hugging Face's allowed port)
3
+ sudo /usr/sbin/nginx -c /etc/nginx/nginx.conf -g "daemon off;" &
4
 
5
+ # Start Gunicorn
6
+ gunicorn django_project.wsgi:application --bind 0.0.0.0:7860