diff options
author | Sheogorath | 2018-09-25 00:31:21 +0200 |
---|---|---|
committer | Sheogorath | 2018-09-25 19:58:55 +0200 |
commit | db59bb99dc59d56e1f807a09845750d05fef43b1 (patch) | |
tree | e1331e72db55e2fa7ef3ffbc0ddaf0fab8a17d70 | |
parent | 5aec047a3e0fcb27b06c54dc692cfa78145057df (diff) |
Run db migrations on start
We should force db migrations to run on every start. This will minimize
the impact of breaking migrations in future. While it may causes some
issues with the next start since CodiMD won't start when the migrations
fail.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
-rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json index b257a114..f0781c2a 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "dev": "webpack --config webpack.config.js --progress --colors --watch", "build": "webpack --config webpack.production.js --progress --colors --bail", "postinstall": "bin/heroku", - "start": "node app.js", + "start": "sequelize db:migrate && node app.js", "doctoc": "doctoc --title='# Table of Contents' README.md" }, "dependencies": { |