Skip to content

Commit db59bb9

Browse files
committed
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>
1 parent 5aec047 commit db59bb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dev": "webpack --config webpack.config.js --progress --colors --watch",
1212
"build": "webpack --config webpack.production.js --progress --colors --bail",
1313
"postinstall": "bin/heroku",
14-
"start": "node app.js",
14+
"start": "sequelize db:migrate && node app.js",
1515
"doctoc": "doctoc --title='# Table of Contents' README.md"
1616
},
1717
"dependencies": {

0 commit comments

Comments
 (0)