iloire / watchmen

A simple node.js service monitor
MIT License
941 stars 195 forks source link

Add support for node foreman #50

Closed emilyhorsman closed 8 years ago

emilyhorsman commented 8 years ago

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! 😍)

iloire commented 8 years ago

Thanks @emilyhorsman!

emilyhorsman commented 8 years ago

Thank you!