Member-only story
Zero downtime deploy Nuxt.js application using PM2
If you are using Nuxt.js as frontend framework, this article will be help you.
1 min readMay 5, 2020
The PM2 is a process manager made by Node.js. It used for running Node.js application.
You can monitor cpu/memory usage status, and record application logs using PM2.
Install PM2
$ npm install -g pm2
Run Nuxt Applicatin using PM2
$ npm run build
$ pm2 start npm -- start
Monitor Processes
$ pm2 monit
Check Running Proccesses
$ pm2 list
Stop the process
$ pm2 stop <process-id>
Restart the process
$ pm2 restart <process-id>