# Start Nginx on port 8080 (Hugging Face's allowed port) | |
sudo /usr/sbin/nginx -c /etc/nginx/nginx.conf -g "daemon off;" & | |
# Start Gunicorn | |
gunicorn django_project.wsgi:application --bind 0.0.0.0:7860 |
# Start Nginx on port 8080 (Hugging Face's allowed port) | |
sudo /usr/sbin/nginx -c /etc/nginx/nginx.conf -g "daemon off;" & | |
# Start Gunicorn | |
gunicorn django_project.wsgi:application --bind 0.0.0.0:7860 |