keymetrics / doc-pm2

DEPRECATED
28 stars 66 forks source link

Watch & Restart | Features | PM2 Documentation #269

Open Unitech opened 5 years ago

Unitech commented 5 years ago

https://pm2.io/doc/en/runtime/features/watch-restart/

PM2 - Guide, References, Tutorials and Best Practices about PM2 and Node.js.

kangaroo711 commented 5 years ago

这里的app.js值的是自己项目的入口文件,nuxt的应该是.nuxt/App.js吧?

kangaroo711 commented 5 years ago

module.exports里面的内容是写在ecosystem.config.js里面吗?

wind-stone commented 5 years ago

When a file is modified in the current directory or its subdirectories, why pm2 PM2 automatically restart the application, but not reload?

powermix commented 5 years ago

Greatest tool ever thank you

fasantos commented 5 years ago

I'm using PM2 3.5.0 on a Linux Vagrant machine. When I stop my services the watching stops. Using "--watch" flag makes no diference, if I do pm2 stop [id], the service stops and watching stops. I can only toggle watch with restart, which means I can only toggle while the service is running. Is there anyway to toggle watch with the service stopped?

Basically I would like to start all may services from a app list, so they are added to pm2, stop them so they don't slowdown the machine, but keep watching so when I start the one I'm working manually trough pm2-gui it still has watching enabled, is that possible