Skip to content

Commit

Permalink
fixed the entrypoint for prisma
Browse files Browse the repository at this point in the history
  • Loading branch information
benymng authored and williamtran10 committed Oct 14, 2023
1 parent 4b55315 commit 9a81fe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions backend/typescript/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,5 @@ COPY . ./

EXPOSE 5000

ENTRYPOINT ["yarn", "dev"]

ENTRYPOINT ["yarn", "prismaInit"]
ENTRYPOINT ["yarn", "prismaInitAndRun"]

2 changes: 1 addition & 1 deletion backend/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "eslint . --ext .ts,.js",
"fix": "eslint . --ext .ts,.js --fix",
"postinstall": "tsc",
"prismaInit": "npx prisma migrate dev --name init"
"prismaInitAndRun": "npx prisma migrate dev --name init && nodemon -L"
},
"keywords": [],
"author": "",
Expand Down

0 comments on commit 9a81fe3

Please sign in to comment.