diff --git a/searching-front/Dockerfile b/searching-front/Dockerfile index b0ef82b..421ab26 100644 --- a/searching-front/Dockerfile +++ b/searching-front/Dockerfile @@ -21,4 +21,5 @@ COPY . . # ENV NEXT_TELEMETRY_DISABLED 1 RUN npm run build +RUN npm run migrate:prod CMD ["npm", "run", "start"] \ No newline at end of file diff --git a/searching-front/Dockerfile.watcher b/searching-front/Dockerfile.watcher index 741eb34..4ea2818 100644 --- a/searching-front/Dockerfile.watcher +++ b/searching-front/Dockerfile.watcher @@ -21,4 +21,5 @@ COPY . . # ENV NEXT_TELEMETRY_DISABLED 1 RUN npm run build +RUN npm run migrate:prod CMD ["npm", "run", "watcher"] \ No newline at end of file diff --git a/searching-front/package.json b/searching-front/package.json index d176860..a82b552 100644 --- a/searching-front/package.json +++ b/searching-front/package.json @@ -11,7 +11,8 @@ "studio": "blitz prisma studio", "lint": "eslint --ignore-path .gitignore --ext .js,.ts,.tsx .", "test": "jest", - "test:watch": "jest --watch" + "test:watch": "jest --watch", + "migrate:prod": "blitz prisma migrate deploy" }, "prisma": { "schema": "db/schema.prisma"