Why is Supervisor not recognizing code changes?

和自甴很熟 提交于 2019-12-06 03:15:15

问题


I'm using Supervisor to manage my node.js applicaton on an EC2 instance with git for deployment. Supervisor does a good job of making sure my application stays up, but whenever I push new server-side code to my remote server, it tends to not recognize those changes. I need to kill the supervisor process and restart it. Is there something I'm doing wrong, or is this standard behavior?


回答1:


This is standard behaviour; supervisord does not detect changes in code. It only restarts processes if they themselves stop or die.

Just instruct supervisord to restart the application whenever you push changes. supervisorctl restart programname is fine, no need to kill and restart supervisord itself.

If the supervisord configuration changed, use supervisorctl update.



来源:https://stackoverflow.com/questions/11422492/why-is-supervisor-not-recognizing-code-changes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!