Skip to content

Commit fff4c16

Browse files
committed
Change process.kill to process.exit, and get rid of the apoptosis in main.js
1 parent 594104b commit fff4c16

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

generated/seed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ db.sync({ force: true })
4949
})
5050
.then(function () {
5151
console.log(chalk.green('Seed successful!'));
52-
process.kill(0);
52+
process.exit(0);
5353
})
5454
.catch(function (err) {
5555
console.error(err);
56-
process.kill(1);
56+
process.exit(1);
5757
});

generated/server/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ var startServer = function () {
2323

2424
db.sync().then(createApplication).then(startServer).catch(function (err) {
2525
console.error(chalk.red(err.stack));
26-
process.kill(1);
2726
});

0 commit comments

Comments
 (0)