Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
context: ./
file: ./Dockerfile
push: true
tags: cornellappdev/eatery-blue:${{ steps.vars.outputs.sha_short }}
tags: cornellappdev/eatery-prod:${{ steps.vars.outputs.sha_short }}

- name: Remote SSH and Deploy
uses: appleboy/ssh-action@v1.0.3
Expand Down
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ COPY prisma ./prisma/
# Generate Prisma client
RUN npx prisma generate

# Sync schema with db
RUN npx prisma db push

# Copy TypeScript configuration and source code
COPY tsconfig.json ./
COPY src ./src/
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ version: '3.8'
services:
app:
image: cornellappdev/eatery-blue-dev:${IMAGE_TAG}
command: >
sh -c "npx prisma db push && npm run start"
configs:
- source: firebase_service_account
target: /app/firebase-service-account.json
Expand Down