node-supervisor icon indicating copy to clipboard operation
node-supervisor copied to clipboard

Program node app.js exited with code 0

Open alvarotrigo opened this issue 10 years ago • 5 comments

I'm using Express and I'm getting this error multiple times just after doing supervisor apps.js:

supervisor

I found no way to run it.

It only seems to work if I do supervisor bin/www. I wonder why this is not specified in the docs somehow.

I guess its because of my package.json file? The default one used with express.

 "scripts": {
    "start": "node ./bin/www"
  },

alvarotrigo avatar Jun 22 '15 09:06 alvarotrigo

I have the same issue, without using express, pure node, so the hot reload never stops...

iboxgithub avatar Aug 22 '15 10:08 iboxgithub

I have the same problem as the OP. If I run supervisor app.js then I get a continuous failure but supervisor ./bin/www works. What is the reason behind this and can you update documentation?

tylersmith34 avatar Aug 27 '15 15:08 tylersmith34

with this: app.set('port', process.env.PORT || 3000);

var server = app.listen(app.get('port'), function() { debug('Express server listening on port ' + server.address().port); });

go-english avatar Mar 02 '16 02:03 go-english

I have a same issue. I don't understand how to solve the problem. Can everybody help me?

vdekameron avatar May 25 '18 17:05 vdekameron

same issue...

lymne avatar Oct 10 '18 02:10 lymne