Skip to content

About

πŸ“€ PM2 Windows setup

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 

Repository files navigation

Created 2024-08-07 10:21:09 +0530
Updated 2024-08-07 12:09:05 +0530
Maintainer Ibrar Ansari

PM2 WINDOWS STARTUP

Make PM2 automatically start on Windows startup

Installation

npm install pm2 -g
npm install pm2-windows-startup -g

Enable on Reboot

pm2-startup install
pm2-startup enable

Register Job

pm2 start app.js --name "my-app1"
or
pm2 start npm --name "my-app" -- run dev
or
pm2 start "npm run dev" --name my-app

PM2 will now automatically revive the saved processes on startup. To save the current list of processes execute:

pm2 startup
pm2 save

Check Registered Jobs

pm2 list

Check logs

pm2 logs <JOB_ID/JOB_Name>

PM2 Cheat-Sheet

Click on this link to see PM2-Cheat-Sheet for more details....


πŸ’Ό Connect with me πŸ‘‡πŸ‘‡ 😊

About

πŸ“€ PM2 Windows setup

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors