Run a custom npm script with PM2
Use this :-
pm2 start --name "Script Name" npm -- run <YOUR CUSTOM SCRIPT> --
Try this:
pm2 start npm -- run littleAppleBot --
pm2 start npm -- run weatherWarnBot --
pm2 start npm --name "Your APP Name" -- start
Use this :-
pm2 start --name "Script Name" npm -- run <YOUR CUSTOM SCRIPT> --
Try this:
pm2 start npm -- run littleAppleBot --
pm2 start npm -- run weatherWarnBot --
pm2 start npm --name "Your APP Name" -- start