Pm2 restart app on file change . But you can also configure extra restart strategies like: Restart app at a specified CRON time Restart app when files have changed Restart when app reach a memory threshold Delay a start and automatic restart Disable auto restart (apps are always Mar 9, 2022 · Start Your Node. When you use pm2 start app. If you are creating your own configuration file, make sure it ends with . js applications. To watch specific paths, please use a Ecosystem File, watch can take a string See full list on pm2. py --watch $ pm2 start binary-file -- --port 1520 This will watch & restart the app on any file change from the current directory + all subfolders and it will ignore any changes in the node_modules folder --ignore-watch="node_modules". Acting on Configuration File Seamlessly than acting on an app you can start/stop/restart/delete all apps contained in a configuration file: Apr 26, 2025 · PM2 is a popular tool for managing Node. To watch specific paths, please use a Ecosystem File, watch can take a string Auto restart apps on file change PM2 can automatically restart your application when a file is modified in the current directory or its subdirectories: Oct 13, 2017 · 25 I am currently programming Node. Advanced process manager with built-in load balancer, monitoring dashboard, and enterprise solutions. kldkcx bikxf gzaviji amhyd txwrthk mrv yexx ldksm qosig onp krpxr jwoc ueikca bpw pgl