Skip to content

Instantly share code, notes, and snippets.

@okbel
Last active April 16, 2016 06:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okbel/56c9b3ae8687e33e5eb3b308b086473e to your computer and use it in GitHub Desktop.
Save okbel/56c9b3ae8687e33e5eb3b308b086473e to your computer and use it in GitHub Desktop.
pm2 > forever
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