You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.
mongoose.connect(config.db.mongodb); // connect to our database
server = app.listen(port, function() {
console.log('Listening on port ' + port)
})
}
app.shutdown = function() {
console.log('Shutdown server on port ' + port)
server.close();
}
//if launched via command line or used as a module (e.g tests) @see http://stackoverflow.com/questions/8864365/can-i-know-in-node-js-if-my-script-is-being-run-directly-or-being-loaded-by-an