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
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.
Most helpful comment
you can also type:
pm2 start npm -- start