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 it still reads the old codes. Could you help me. I tried to restart supervisor, it didn't work

+3


source to share


1 answer


If you are talking about python code changes, just use supervisorctl

.

supervisorctl restart gunicorn (or whatever you called this)

      



If you are talking about supervisor configuration changes, use supervisorctl reread

before starting your supervisor run script viasupervisorctl start foo

+8


source







All Articles