Last active
April 16, 2016 06:26
-
-
Save okbel/56c9b3ae8687e33e5eb3b308b086473e to your computer and use it in GitHub Desktop.
pm2 > forever
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pm2 > forever | |
Basically it took me less than five minutes to configure pm2 while foreverjs took ... forever ( > 30 mins ) | |
The reason behind it: pm2 allows you to name your process the moment you are starting it. So, you can handle it by just | |
calling it and does not create several instances without reason. | |
Proof: | |
forever start --uid "server" server.js ----- pm2 start server.js -n server | |
## This creates a new instance ##This recognizes the old instance and does not create another | |
pids can be messy to handle in a non-local enviroment. With pm2 you can interact with your named process without | |
caring about the pid. | |
I found forever unreliable for my apps, limited and it has issues on system reboots. | |
My pick is pm2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment