diff --git a/Dockerfile b/Dockerfile index 8a61508767fb5a491695150bbcff4eeb4450d58b..e5e6c06a617e5e00c6c7ecd44b2c232354fbd39d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/package.json b/package.json index 8759edd4ac5b694172d5ca0ead0b8035a2bd470c..40f2bdd6adb8f68c0bb114f92e097fb8eb26beb8 100644 --- a/package.json +++ b/package.json @@ -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",