NodeJS in Production - Run at Startup and Restart if it Crashes

167 views
Skip to first unread message

Ken Snyder

unread,
May 18, 2013, 10:04:43 PM5/18/13
to uta...@googlegroups.com
What is the best way(s) these days to run a NodeJS server in production; i.e. make sure that it runs at startup and restarts if it crashes.

Thanks,

Ken Snyder

Ryan Florence

unread,
May 18, 2013, 10:45:57 PM5/18/13
to uta...@googlegroups.com
s/if it crashes/when it crashes/

I use node-supervisor from izs (note: I have nothing very important running in node.)

Sent from my iPhone
--
Group meets on the 1st Thursday and 3rd Tuesday of each month. See http://utahjs.com/location/ for more info.
---
You received this message because you are subscribed to the Google Groups "Utah JavaScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to utahjs+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/utahjs?hl=en-US.
 
 

Sean Clark Hess

unread,
May 19, 2013, 12:22:38 AM5/19/13
to uta...@googlegroups.com
Upstart on a Ubuntu box. It's really easy to use and I'm more comfortable using something non-node to keep node running. 

Aaron S

unread,
May 19, 2013, 1:12:08 AM5/19/13
to uta...@googlegroups.com

Jamund Ferguson

unread,
May 20, 2013, 11:26:13 AM5/20/13
to uta...@googlegroups.com
Yeah I also use forever.

--

addisonj

unread,
May 20, 2013, 12:03:23 PM5/20/13
to uta...@googlegroups.com
As Sean mentioned, upstart is quite amazing. As part time ops guy, I highly recommend it 

If you are deploying to ubuntu (or a debian with upstart), you can use https://github.com/idottv/gogogo for deploys. It will write out upstart files for you, has support for cron, deploying to multiple hosts, etc. 

If you have questions, feel free to email on list or directly.

On Saturday, May 18, 2013 8:04:43 PM UTC-6, Ken Snyder wrote:

George Shank

unread,
May 21, 2013, 11:34:04 AM5/21/13
to uta...@googlegroups.com
I use http://npm.im/forever as previously mentioned. It's incredibly easy to manage multiple daemon processes.


On Saturday, May 18, 2013 8:04:43 PM UTC-6, Ken Snyder wrote:

Ken Snyder

unread,
May 21, 2013, 11:43:07 AM5/21/13
to uta...@googlegroups.com
Thanks! It sounds like Upstart and Forever are the top picks.


--
Reply all
Reply to author
Forward
0 new messages