itsapi / github-listener

A Node.js continuous deployment system for Github.
http://github.com/itsapi/github-listener
GNU General Public License v2.0
7 stars 0 forks source link

Add pm2 restart command to options.json #24

Closed geraintwhite closed 9 years ago

geraintwhite commented 9 years ago

There is a problem where post-receive sometimes does not copy all the files before the process is killed by pm2 watch. We could disable pm2 watch and add pm2 restart git to options.json in the command field.

geraintwhite commented 9 years ago

This doesn't require any modifications to ghl or ptr at all, just a simple change in the options.json and turn off pm2 watch.