Skip to content

Commit

Permalink
Add postinstall script for prisma schema generation (#370)
Browse files Browse the repository at this point in the history
* Update README to include database schema generation instruction

* Remove README and add `postinstall` in backend/package.json

* Fix postinstall command

* Fix format
  • Loading branch information
choidabom authored and devleejb committed Oct 23, 2024
1 parent 16f32c7 commit 726af33
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ RUN mkdir /usr/share/fonts/nanumfont && \
fc-cache -f -v

# Set the environment variables
ENV NODE_ENV production
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
ENV PUPPETEER_EXECUTABLE_PATH /usr/bin/chromium-browser

Expand Down
1 change: 1 addition & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "nest build",
"postinstall": "pnpm run db:generate",
"db:generate": "prisma generate --schema=prisma/schema.prisma",
"start": "nest start",
"start:dev": "nest start --watch",
Expand Down

0 comments on commit 726af33

Please sign in to comment.