Skip to content

Commit 60b19d3

Browse files
authored
Merge pull request #12 from cuappdev/main
First deployment for eatery prod
2 parents 706bca4 + 16ff3ca commit 60b19d3

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/deploy-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
context: ./
3333
file: ./Dockerfile
3434
push: true
35-
tags: cornellappdev/eatery-blue:${{ steps.vars.outputs.sha_short }}
35+
tags: cornellappdev/eatery-prod:${{ steps.vars.outputs.sha_short }}
3636

3737
- name: Remote SSH and Deploy
3838
uses: appleboy/ssh-action@v1.0.3

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ COPY prisma ./prisma/
1616
# Generate Prisma client
1717
RUN npx prisma generate
1818

19-
# Sync schema with db
20-
RUN npx prisma db push
21-
2219
# Copy TypeScript configuration and source code
2320
COPY tsconfig.json ./
2421
COPY src ./src/

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ version: '3.8'
33
services:
44
app:
55
image: cornellappdev/eatery-blue-dev:${IMAGE_TAG}
6+
command: >
7+
sh -c "npx prisma db push && npm run start"
68
configs:
79
- source: firebase_service_account
810
target: /app/firebase-service-account.json

0 commit comments

Comments
 (0)