mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-25 07:25:12 +00:00
Dockerを使用している場合、アプデの際にマイグレを自動実行するように
This commit is contained in:
parent
70d710c9a9
commit
a21357248f
2 changed files with 2 additions and 1 deletions
|
@ -39,4 +39,4 @@ COPY --from=builder /misskey/node_modules ./node_modules
|
|||
COPY --from=builder /misskey/built ./built
|
||||
COPY . ./
|
||||
|
||||
CMD ["npm", "start"]
|
||||
CMD ["npm", "migrateandstart"]
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
"init": "node ./built/init.js",
|
||||
"ormconfig": "node ./built/ormconfig.js",
|
||||
"migrate": "npm run ormconfig && ts-node ./node_modules/typeorm/cli.js migration:run",
|
||||
"migrateandstart": "npm run migrate && npm run start",
|
||||
"build": "webpack && gulp build",
|
||||
"webpack": "webpack",
|
||||
"watch": "webpack --watch",
|
||||
|
|
Loading…
Reference in a new issue