2013-02-15 72 views
3

我正在與Gunicorn和Nginx一起運行帶Supervisor的django項目。一切工作正常,但是當我對代碼進行了一些更改時,它並未被主管識別,並且仍然讀取舊代碼。你能幫我麼。我試圖重新啓動supervisorctl,它沒有工作用代碼更改重啓SuperVisor

回答

8

如果你正在談論python代碼更改,只需使用supervisorctl

supervisorctl restart gunicorn (or whatever you called this) 

如果你在談論上司配置更改,通過supervisorctl start foo

開始你的上司啓動腳本之前使用 supervisorctl reread