node-supervisor
node-supervisor copied to clipboard
Program node app.js exited with code 0
I'm using Express and I'm getting this error multiple times just after doing supervisor apps.js:
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"
},
I have the same issue, without using express, pure node, so the hot reload never stops...
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?
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); });
I have a same issue. I don't understand how to solve the problem. Can everybody help me?
same issue...