I added a Procfile so the monitor and web server can be managed similarly to pm2. This uses node-foreman which is similar to Foreman in the Ruby world.
The benefit of this is easily exporting to an Upstart script with managed environment variables. This is described in my changes to the README.
At work, we use this to start watchmen up when the server boots and manage configuration/plugin changes through sudo service watchmen restart (much easier! 😍)
I added a
Procfile
so the monitor and web server can be managed similarly topm2
. This usesnode-foreman
which is similar to Foreman in the Ruby world.The benefit of this is easily exporting to an Upstart script with managed environment variables. This is described in my changes to the README.
At work, we use this to start watchmen up when the server boots and manage configuration/plugin changes through
sudo service watchmen restart
(much easier! 😍)