Skip to content

Commit

Permalink
fix: backend image
Browse files Browse the repository at this point in the history
  • Loading branch information
orig committed Sep 9, 2023
1 parent ece9292 commit faf8f32
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ COPY ./nx.json ./nx.json
EXPOSE 3000

# Start the application
CMD sh -c "npx nx migrate-dev prisma --name=init && node backend/main.js"
CMD sh -c "npx nx migrate-deploy prisma --name=init && node backend/main.js"
9 changes: 9 additions & 0 deletions libs/prisma/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
"parallel": true
}
},
"migrate-deploy": {
"executor": "nx:run-commands",
"options": {
"command": "npx prisma migrate deploy --schema=src/schema.prisma",
"cwd": "libs/prisma",
"envFile": "apps/backend/.env",
"parallel": true
}
},
"studio": {
"command": "prisma studio --schema=src/schema.prisma",
"options": {
Expand Down

0 comments on commit faf8f32

Please sign in to comment.