Don't run migrations on start (must be run explicitly)

This commit is contained in:
Dragory 2019-05-25 21:23:09 +03:00
parent 0f1ee84c46
commit 1aa549e391
4 changed files with 3 additions and 4 deletions

View file

@ -10,7 +10,8 @@
"format": "prettier --write \"./**/*.ts\"",
"typeorm": "ts-node ./node_modules/typeorm/cli.js",
"build": "rimraf dist && tsc",
"start-prod": "cross-env NODE_ENV=production node dist/index.js"
"start-prod": "cross-env NODE_ENV=production node dist/index.js",
"migrate": "npm run typeorm -- migration:run"
},
"keywords": [],
"author": "",