Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Supervisor not recognizing code changes?

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?

like image 438
user730569 Avatar asked Jul 10 '12 21:07

user730569


1 Answers

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.

like image 84
Martijn Pieters Avatar answered Oct 22 '22 21:10

Martijn Pieters