doc-pm2 icon indicating copy to clipboard operation
doc-pm2 copied to clipboard

Watch & Restart | Features | PM2 Documentation

Open Unitech opened this issue 6 years ago • 5 comments

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

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

Unitech avatar Dec 27 '18 13:12 Unitech

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

kangaroo711 avatar Jan 11 '19 05:01 kangaroo711

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

kangaroo711 avatar Jan 11 '19 05:01 kangaroo711

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

wind-stone avatar Mar 07 '19 15:03 wind-stone

Greatest tool ever thank you

powermix avatar Apr 10 '19 00:04 powermix

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

fasantos avatar Apr 28 '19 13:04 fasantos