Express: Forever run app

Source: https://stackoverflow.com/questions/24072812/forever-node-js-express-4

Try this:
forever start ./bin/www
Let's take a look to package.json:
"scripts": {
    "start": "node ./bin/www"
},
I guess when we call npm start./bin/www will be executed at some point. Then look at the content of./bin/www:
var server = app.listen(app.get('port'), function() {
  debug('Express server listening on port ' + server.address().port);
});
so we are ready to listen for connections.

Không có nhận xét nào:

Check to be sure that port 22 is enabled before you reload

 https://superuser.com/questions/590600/ufw-is-active-but-not-enabled-why etting  ENABLED=yes  in  /etc/ufw/ufw.conf  did it for me. $ sudo ...