PM2 Commands to use for Profit Trailer

Now that you have Profit Trailer installed you may need to use the pm2 commands at times.  Below are a few you can use that will help you out

pm2 list – This will show you all the active bots or addons/script running
pm2 ls –  Same as above

You will see under id your processes.  They start at 0.  So if you install Profit Trailer, it would be id 0.  You can look under App name to get the name of the app.

pm2 stop 0 – This will stop the first process you have running (usually this would be the first PT bot

pm2 start 0 – This will start the first process
pm2 restart 0 – Same as above. This will start the first process
pm2 reload 0 – Same as above. This will start the first process

pm2 log 0 – This will show you the live log of the app.  This is good for troubleshooting issues.

pm2 delete 0 – This will remove app from pm2 services