Dockerを使用している場合、アプデの際にマイグレを自動実行するように
... | @@ -14,6 +14,7 @@ | ... | @@ -14,6 +14,7 @@ |
"init": "node ./built/init.js", | "init": "node ./built/init.js", | ||
"ormconfig": "node ./built/ormconfig.js", | "ormconfig": "node ./built/ormconfig.js", | ||
"migrate": "npm run ormconfig && ts-node ./node_modules/typeorm/cli.js migration:run", | "migrate": "npm run ormconfig && ts-node ./node_modules/typeorm/cli.js migration:run", | ||
"migrateandstart": "npm run migrate && npm run start", | |||
"build": "webpack && gulp build", | "build": "webpack && gulp build", | ||
"webpack": "webpack", | "webpack": "webpack", | ||
"watch": "webpack --watch", | "watch": "webpack --watch", | ||
... | ... |
Please register or sign in to comment