diff --git a/startup.sh b/startup.sh index e2efd5a..fb8490c 100644 --- a/startup.sh +++ b/startup.sh @@ -2,8 +2,8 @@ if [ -f /etc/ssl/cert.pem ] && [ -f /etc/ssl/key.pem ]; then echo "SSL certificates found, starting Gunicorn with HTTPS..." - gunicorn app.wsgi:application --bind 0.0.0.0:${APP_PORT} --certfile=/etc/ssl/cert.pem --keyfile=/etc/ssl/key.pem + gunicorn -w 4 --bind 0.0.0.0:${APP_PORT} 'app:app' --timeout 2400 --certfile=/etc/ssl/cert.pem --keyfile=/etc/ssl/key.pem else echo "SSL certificates not found, starting Gunicorn with HTTP..." - gunicorn app.wsgi:application --bind 0.0.0.0:${APP_PORT} -fi \ No newline at end of file + gunicorn -w 4 --bind 0.0.0.0:${APP_PORT} 'app:app' --timeout 2400 +fi