mirror of
https://github.com/Febbweiss/CloudBudget.git
synced 2026-03-04 22:35:38 +00:00
Feature: manage npm stop command
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"test": "NODE_ENV=test mocha",
|
||||
"start": "app.js"
|
||||
"start": "app.js",
|
||||
"stop": "pkill --signal SIGINT CloudBudget"
|
||||
}
|
||||
}
|
||||
@@ -52,6 +52,8 @@ require('./app/routes')(app);
|
||||
this.app = app;
|
||||
this.server = server;
|
||||
|
||||
process.title = 'CloudBudget';
|
||||
|
||||
exports.listen = function () {
|
||||
if( process.env.NODE_ENV !== 'test' ) {
|
||||
console.log('Server running in ' + process.env.NODE_ENV + ' mode on port ' + this.server.port );
|
||||
|
||||
Reference in New Issue
Block a user