Skip to content

Commit

Permalink
fix run script
Browse files Browse the repository at this point in the history
  • Loading branch information
manuphatak committed May 21, 2016
1 parent f672ede commit 2988b20
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/_migrate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ module.exports = function migrate(app = _app) {
.then(() => disconnect(app))
.catch(error => {
console.trace(error);
process.exit(1);
return Promise.reject(error);
});
};
4 changes: 3 additions & 1 deletion bin/autoupdate
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ require('babel-register');

const autoupdate = require('./_autoupdate');

module.exports = autoupdate();
module.exports = autoupdate()
.then(() => process.exit())
.catch(() => process.exit(1));
4 changes: 3 additions & 1 deletion bin/migrate
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ require('babel-register');

const migrate = require('./_migrate');

module.exports = migrate();
module.exports = migrate()
.then(() => process.exit())
.catch(() => process.exit(1));
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "server/server.js",
"scripts": {
"prestart": "npm run migrate",
"start": "slr",
"start": "slr .",
"dev": "gulp dev --debug",
"build": "gulp build",
"build:debug": "npm run build -- --debug",
Expand Down

0 comments on commit 2988b20

Please sign in to comment.