Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restarting SuperVisor with code changes

I am running a django project with Gunicorn and Nginx with Supervisor. Everything worked fine but when i made some changes to the code it is not recognized by the supervisor and still it reads the old codes. Can you please help me. I tried to restart supervisorctl, it didnt work

like image 336
Saransh Mohapatra Avatar asked Feb 15 '13 03:02

Saransh Mohapatra


1 Answers

If you're talking about python code changes, just use supervisorctl.

supervisorctl restart gunicorn (or whatever you called this)

If you're talking about supervisor configuration changes, use supervisorctl reread before starting your supervisor startup script via supervisorctl start foo

like image 81
Yuji 'Tomita' Tomita Avatar answered Nov 15 '22 04:11

Yuji 'Tomita' Tomita