nuxt-community / koa-template

Starter template for Nuxt.js with KoaJS.
https://koa.nuxtjs.org
382 stars 62 forks source link

How can I start the project with pm2? (on CentOS) #28

Closed k55783637 closed 6 years ago

k55783637 commented 7 years ago

I execute the command: 'pm2 start ./build/main.js' on Windows is ok but on CentOS: It prompted service is refused

This question is available on Nuxt.js community (#c18)
NavOrange commented 7 years ago

like this it's working:

  1. npm run build
  2. pm2 start npm -- start --name "project name"
  3. pm2 status