Skip to content
Snippets Groups Projects
Unverified Commit a2135724 authored by syuilo's avatar syuilo
Browse files

Dockerを使用している場合、アプデの際にマイグレを自動実行するように

parent 70d710c9
No related branches found
No related tags found
No related merge requests found
...@@ -39,4 +39,4 @@ COPY --from=builder /misskey/node_modules ./node_modules ...@@ -39,4 +39,4 @@ COPY --from=builder /misskey/node_modules ./node_modules
COPY --from=builder /misskey/built ./built COPY --from=builder /misskey/built ./built
COPY . ./ COPY . ./
CMD ["npm", "start"] CMD ["npm", "migrateandstart"]
...@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment