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 pm22. 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 statusThis 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 logsTo view logs for a specific application:
pm2 logs AlphaCtyl5. Save the PM2 Process List
To ensure that your processes are restored on system reboot, save the PM2 process list:
pm2 save6. Set Up PM2 to Start on System Boot
Generate a startup script for PM2 to launch on system boot:
pm2 startupLast updated