Restart a Node.js application that's managed by PM2?

suparman21 asked this question 1 year, 5 months ago
suparman21 on Dec 13, 2021 · Edited

I need to restart my PM2 application so it sees the new code changes I made.

Any idea how this can be done?

2 suggested answers
nick on Dec 15, 2021 · Edited

You can do that easily with this command:

pm2 restart <your-app-name>
0 replies
itsbambi on Dec 15, 2021

You need to restart your application.

Restart a single application:

pm2 restart <your-app-name>

Restart multiple applications:

pm2 restart <app-name> <app-name> <app-name>

Restart all applications:

pm2 restart all
0 replies