How do I run nuxt.js in a real service?

I have used vue-cli in

vue init nuxt / express myProject

and,

npm run dev

developed.

but

npm run build

after, the dist file was created.

How can I run a real service in pm2?

(I will be using ubuntu on AWS EC.)

+3


source to share


1 answer


you just need to run your application like this:

pm2 start npm --name "your-project-name" -- start

      

Check status:



pm2 status

      

and after restart / stop:

pm2 restart your-project-name
pm2 stop your-project-name

      

+7


source







All Articles