http://pm2.keymetrics.io/docs/usage/watch-and-restart/#auto-restart-apps-on-file-change
根据这里的方法,只需要把pm2
的服务先停下,然后起来的时候带上--watch
就可以了
pm2设置自动重启
最新推荐文章于 2024-05-25 18:06:21 发布
http://pm2.keymetrics.io/docs/usage/watch-and-restart/#auto-restart-apps-on-file-change
根据这里的方法,只需要把pm2
的服务先停下,然后起来的时候带上--watch
就可以了