Skip to content

Commit

Permalink
chore: add seed.js to prisma config
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulijuz committed Oct 26, 2023
1 parent 7070ede commit 8ec22fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"lint": "next lint"
},
"prisma": {
"schema": "src/prisma/schema.prisma"
"schema": "src/prisma/schema.prisma",
"seed": "node src/prisma/seed.js"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.4.2",
Expand Down
2 changes: 1 addition & 1 deletion src/prisma/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ RUN npm install @prisma/client
RUN npx prisma generate
COPY seed.js ./

CMD ["/bin/sh", "-c", "npx prisma migrate dev --name docker-migration --skip-generate; node seed.js"]
CMD ["/bin/sh", "-c", "npx prisma migrate dev --name docker-migration --skip-generate; npx prisma db seed"]

0 comments on commit 8ec22fe

Please sign in to comment.