From db59bb99dc59d56e1f807a09845750d05fef43b1 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Tue, 25 Sep 2018 00:31:21 +0200 Subject: 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 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package.json') 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": { -- cgit v1.2.3