Run migration on build

This commit is contained in:
Brian Cao 2022-08-23 10:49:45 -07:00
parent 549ef0295f
commit 3d7b3aa588
2 changed files with 4 additions and 3 deletions

View File

@ -20,7 +20,7 @@ ENV BASE_PATH $BASE_PATH
ENV NEXT_TELEMETRY_DISABLED 1 ENV NEXT_TELEMETRY_DISABLED 1
RUN yarn build RUN yarn build-docker
# Production image, copy all the files and run next # Production image, copy all the files and run next
FROM node:16-alpine AS runner FROM node:16-alpine AS runner

View File

@ -11,8 +11,9 @@
}, },
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
"build": "npm-run-all build-tracker build-geo build-db build-app", "build": "npm-run-all build-db check-db build-tracker build-geo build-app",
"start": "npm-run-all check-db start-next", "start": "npm-run-all start-next",
"build-docker": "npm-run-all build-db build-tracker build-geo build-app",
"start-docker": "npm-run-all check-db update-tracker start-server", "start-docker": "npm-run-all check-db update-tracker start-server",
"start-env": "node scripts/start-env.js", "start-env": "node scripts/start-env.js",
"start-server": "node server.js", "start-server": "node server.js",