LearnBoost / up

Zero-downtime reloads and requests load balancer based on distribute.
540 stars 73 forks source link

Fails to start in background #50

Open simonexmachina opened 11 years ago

simonexmachina commented 11 years ago

If I execute the following using up -n 1 test.js (in the foreground) it behaves as expected, but if I start this in the background using up -n 1 test.js & then the master dies, the workers never output 'started' or 'listening' and eventually commit suicide.

console.log('started');
module.exports = server = require('express').createServer();
server.on('listening', function() {
  console.log('listening');
});
simonexmachina commented 11 years ago

Am I the only person seeing this problem? Or is this an issue for anyone else? I need to be able to run this in the background. Happy to look into it myself, but it'd be nice to get some idea of what might be causing it or where to start.

simonexmachina commented 11 years ago

Still no reply to this issue. Anyone? It's a pretty simple example case, would really appreciate some help with this.

simonexmachina commented 11 years ago

Okay it looks to me that up is abandoned. I'll use something else...

mjadobson commented 11 years ago

+1.

niclashoyer commented 11 years ago

if this abandoned, what are the alternatives?

simonexmachina commented 11 years ago

I'm just using forever to re-launch, and I believe that you can use cluster to provide the multi-process feature but I haven't done this.

niclashoyer commented 11 years ago

For production environments I'm trying naught for now.