有没有办法让pm2运行npm启动脚本,或者您只需要运行pm2 start app.js
pm2 start app.js
所以在开发过程中
npm start
然后,在使用pm2的生产环境中,您将运行如下内容
pm2 start 'npm start'
在forever中有一种等效的方法可以做到这一点
forever
forever start -c "npm start" ./
https://stackoverflow.com/questions/31579509
相似问题