Live data from Hacker News

Keeping node.js servers up forever

blog.nodejitsu.com

1–10 of 41 posts

Re: Keeping node.js servers up forever

#4
I like how there's a command line interface plus an application interface, so I can tie forever process management into my web interface and backend control interface. Right now the processes are just sitting in a `while true` bash loop.

Re: Keeping node.js servers up forever

#7
post #4

I like how there's a command line interface plus an application interface, so I can tie forever process management into my web interface and backend control interface. Right now the processes are just sitting in a `while true` bash loop.

Thanks. If you dig in a little deeper you can see I use optimist for the CLI parsing :)

In the next version I'd like to expose a web service and also have hooks for doing things like sending emails when forever restarts a process.

Re: Keeping node.js servers up forever

#8
By using the 'http' module we can run a stand-alone web server in node.js without the need for a separate server like Apache or nginx.

Last I checked Ryan was saying this was a very bad idea. Has that changed? It's certainly enticing.

Re: Keeping node.js servers up forever

#9
post #8

By using the 'http' module we can run a stand-alone web server in node.js without the need for a separate server like Apache or nginx. Last I checked Ryan was saying this was a very bad idea. Has that changed? It's certainly enticing.

When did you last check with him? I've been running w/o a separate server (effectively) for ~3 months.

Re: Keeping node.js servers up forever

#10
This reminds me of the bad old days of Rails, when every man and his dog had some random hacky and myopic solution to keep Rails and Mongrel running. Just say no to Node/Rails/whatever specific-stuff, kids--use system level tools for running processes.

Edit: removed references to "proprietary", as indexzero is correct about meaning of that.

Post reply on HN