mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 21:19:07 +01:00
Dockerを使用している場合、アプデの際にマイグレを自動実行するように
This commit is contained in:
parent
0522e5d2d2
commit
a6f77f1033
@ -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 @@
|
|||||||
"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",
|
||||||
|
Loading…
Reference in New Issue
Block a user