Starting Dashboard
1. Install PM2
If you haven’t already installed PM2, you can do so globally using npm. Make sure you have Node.js and npm installed first.
npm install -g pm2
2. Start Your Application with PM2
Navigate to your project directory and start your application:
pm2 start app.js --name "AlphaCtyl"
Here, "
AlphaCtyl"
is an optional name you can give to your process for easier management.
3. Check the Status of Dashboard
You can check the status of your application with:
pm2 status
This command will show you a list of all processes managed by PM2 along with their status.
4. View Logs
To view the logs of your application:
pm2 logs
To view logs for a specific application:
pm2 logs AlphaCtyl
5. Save the PM2 Process List
To ensure that your processes are restored on system reboot, save the PM2 process list:
pm2 save
6. Set Up PM2 to Start on System Boot
Generate a startup script for PM2 to launch on system boot:
pm2 startup
Last updated