Nuxt.js: After build production use a tool like PM2 to start up the app

Created on 22 Feb 2017  路  8Comments  路  Source: nuxt/nuxt.js

Hi there, so far I'm very happy with the results of Nuxt and Vue particularly, congratulations on the good work.

I do have a quick / newbie question about running a production folder (dist) generated with Nuxt with a tool like PM2.

Which file in the dist folder do I have to run to make sure the app is properly started up?

So for example when I build and isomorphic app with nodejs and express I was start with pm2 start server.js what would be the case on the nuxt folder?

Thank you

This question is available on Nuxt.js community (#c252)
duplicate question

Most helpful comment

you can also type:
pm2 start npm -- start

All 8 comments

Hi thanks for the support,
npm run generate command is use to generate static hosted application.
I think your are asking for server render application in production, in this case it's not the same.
Server Rendered Deployment
How can I run nuxt with PM2?

you can demonize it using pm2 by typing
pm2 start node_modules\nuxt\bin\nuxt-start --name your-app

Thanks for the heads up! It works!

you can also type:
pm2 start npm -- start

Yes I came exactly here to comment what just @blackpr commented. Thanks for saving lives of countless people.

See also https://medium.com/@vipercodegames/nuxt-deploy-809eda0168fc

Really good article 馃挴

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

o-alexandrov picture o-alexandrov  路  3Comments

jaredreich picture jaredreich  路  3Comments

uptownhr picture uptownhr  路  3Comments

surmon-china picture surmon-china  路  3Comments

vadimsg picture vadimsg  路  3Comments