NodeBB has been shown to work fine with pm2. However, I do not use it for the following reasons:
- pm2 launches a "Satan" daemon that does not get killed, ever. This daemon hogs ports, so if you use
stop
or stopAll
, congratulations, your previous NodeBB ports are now blocked forever.
- Unitech's suggestion is to use Node 0.11.x. Are you serious? The latest stable build is still 0.10.
- pm2 has no "programmatic" interface so I can use it as a module inside of a script. Forever has forever-monitor, and even though it's pretty buggy (outfiles and logs don't even work), at least I have that instead of... nothing.
- In my (albeit limited) testing, I found that
pm2 restart
acted more like a soft restart. All modules were still loaded, meaning in development, old data was still being served.
In short, I have to jump through hoops to kill -9
the satan instance in order to free a port. That's enough of a turn-off for me, but lots of people like it.
Edit: Can you tell I don't like pm2?
Edit 2: It is worth mentioning that I haven't tried pm2 in nearly a month. It may work better now.