I have a small Express.js app and I want to use --watch feature of pm2 since restarting my server for each code change is a nightmare.pm2 start bin/www --watchIt works this way but when I change my port from 3000 to 80, I can't get it to work, it just restarts itself over and over (pm2 list shows that)which node returns /usr/local/bin/nodeecho $PATH returns /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbinAdding sudo didn't make the trick. I'm using Mac OSX.Any help is appreciated, thanks.
Submitted January 06, 2016 at 04:16AM by laraveling
No comments:
Post a Comment