diff --git a/Dockerfile b/Dockerfile index 8a61508767..e5e6c06a61 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 8759edd4ac..40f2bdd6ad 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",