Update start.sh
Browse files
start.sh
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
#!/bin/bash
|
|
|
|
|
2 |
|
3 |
-
# Start
|
4 |
-
|
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
|
|
|
|
|
|