update startup.sh

This commit is contained in:
charlene tau express 2025-04-08 13:13:35 +08:00
parent 194e93b0f6
commit 59d83ae440

View File

@ -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
gunicorn -w 4 --bind 0.0.0.0:${APP_PORT} 'app:app' --timeout 2400
fi