update startup.sh
This commit is contained in:
parent
194e93b0f6
commit
59d83ae440
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user