Scales Better Daemon with PM2 #212
Locked
LordRalex
announced in
Legacy - Templates and Modifications
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
digitronic-games wrote at Apr 15 2016 17:39:07 UTC:
PM2 will auto restart your scrip when it fails and start it upon boot. Hers how to use it with Scales:
The first step is to edit the index.js file remove line 108 and lines 41 to 51 this will remove the existing daemon inside Scales
Next is to globally install PM2
next you want to navigate to the directory you scales is located in
now start scales
and lastly add pm2 to the start up of your machine
Other commands for PM2
pm2 start index - Start an application with this command
pm2 stop index - Stop an application with this command
pm2 restart index - Restart an application with this command
pm2 list - The list of applications currently managed by PM2
pm2 info index - More information about a specific application
pm2 monit - This displays the application status, CPU, and memory usage
For more information on PM2 go here!
Beta Was this translation helpful? Give feedback.
All reactions