Skip to content

Commit

Permalink
fix: 🐛 migrate db during deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
slugb0t committed Dec 9, 2024
1 parent 76c35b7 commit 95dad9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ COPY prisma ./prisma/

# Install dependencies, generate prisma, and clean up
RUN yarn install --frozen-lockfile --production \
&& yarn prisma:migrate:deploy \
&& yarn prisma:generate \
&& yarn cache clean

Expand Down
1 change: 1 addition & 0 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ COPY package.json yarn.lock ./
COPY prisma ./prisma/

RUN yarn install --frozen-lockfile \
&& yarn prisma:migrate:deploy \
&& yarn prisma:generate \
&& yarn cache clean

Expand Down

0 comments on commit 95dad9c

Please sign in to comment.