potential fix: set Supervisor priorities to ensure Gunicorn starts before nginx to prevent 502 errors
This commit is contained in:
@@ -4,7 +4,10 @@ nodaemon=true
|
|||||||
[program:nginx]
|
[program:nginx]
|
||||||
command=/usr/sbin/nginx -g "daemon off;"
|
command=/usr/sbin/nginx -g "daemon off;"
|
||||||
autorestart=true
|
autorestart=true
|
||||||
|
priority=20
|
||||||
|
|
||||||
[program:gunicorn]
|
[program:gunicorn]
|
||||||
command=/code/entrypoint.sh
|
command=/code/entrypoint.sh
|
||||||
autorestart=true
|
autorestart=true
|
||||||
|
priority=10
|
||||||
|
startsecs=5
|
||||||
|
|||||||
Reference in New Issue
Block a user