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.

Jangwook Kim
1 min readMay 5, 2020
The Logo of the Nuxt.js and PM2

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>

--

--

Jangwook Kim
Jangwook Kim

Written by Jangwook Kim

Korean, live in Japan. The programmer. I love to learn something new things. I’m publishing my toy projects using GitHub. Visit https://www.jangwook.net.

Responses (1)