Hacker News new | ask | show | jobs
by jaimehrubiks 2790 days ago
What are some good practices to install this as a service (to replace apache, for example). Do you just setup a systemd script or you have any common utility for this? I read about pm2 being a common choice. Do you recommend it? Is there any alternative for multiple app types apart from node?
1 comments

I use PM2. It's very good, and it keeps things in the node ecosystem.
Pm2 isn't the best tool we could have, but it's probably the best one existing.

To all future users: don't call `pm2 start ...` too often one by one (like in .sh script) - it won't start all of these, just some of them (at least on raspberry, maybe faster cpu helps here), use "ecosystem" feature for starting multiple services