Skip to content

Commit

Permalink
One more attempt to migrate Postgres tables
Browse files Browse the repository at this point in the history
  • Loading branch information
msoledade committed Mar 15, 2024
1 parent 86f3052 commit 61ffcc3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ jobs:
- name: Prisma generate
run: yarn prisma generate

- name: Prisma migrate
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: npx prisma migrate deploy


- name: Build
run: yarn build

Expand Down Expand Up @@ -86,7 +92,7 @@ jobs:
source: "Dockerfile,docker-compose.yml"
target: "/var/docker/evokegen/"

- name: executing remote ssh commands using ssh key
- name: Executing remote ssh commands using ssh key
uses: appleboy/[email protected]
with:
host: ${{ secrets.PROD_SSH_HOST }}
Expand All @@ -95,9 +101,4 @@ jobs:
script: |
cd /var/docker/evokegen/
sudo docker build -t evokegen .
sudo docker-compose up -d
- name: Prisma migrate
run: yarn prisma migrate deploy
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
sudo docker-compose up -d

0 comments on commit 61ffcc3

Please sign in to comment.