Skip to content

Commit

Permalink
fix: statrup migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulijuz committed Oct 14, 2023
1 parent 81f13e9 commit a56d8d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ RUN npm ci
COPY ./ ./

RUN npm run build
CMD ["./scripts/start.sh"]
CMD ["npm", "run", "docker:migrate:dev"]
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN npm ci

COPY ./ ./

CMD ["./scripts/start.dev.sh"]
CMD ["npm", "run", "docker:migrate:dev"]
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"docker:migrate:dev": "npx prisma migrate dev --name init && next dev"
},
"prisma": {
"schema": "src/prisma/schema.prisma"
Expand Down

0 comments on commit a56d8d3

Please sign in to comment.