Can pm2 run an 'npm start' script

前端 未结 17 1157
心在旅途
心在旅途 2020-12-04 04:45

Is there a way for pm2 to run an npm start script or do you just have to run pm2 start app.js

So in development

npm start

17条回答
  •  执笔经年
    2020-12-04 05:10

    Now, You can use after:

    pm2 start npm -- start
    

    Follow by https://github.com/Unitech/pm2/issues/1317#issuecomment-220955319

提交回复
热议问题