Can pm2 run an 'npm start' script

前端 未结 17 1171
心在旅途
心在旅途 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

    pm2 start ./bin/www
    

    can running

    if you wanna multiple server deploy you can do that. instead of pm2 start npm -- start

提交回复
热议问题