Skip to content

Commit a3add8d

Browse files
committed
Fix missing redis proxy when deploying
1 parent 3cbf9c7 commit a3add8d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,20 @@ jobs:
3333

3434
- uses: superfly/flyctl-actions/setup-flyctl@master
3535

36-
- name: Migrate database
36+
- name: Open database proxy
3737
run: |
3838
flyctl proxy 5434:5432 --app teerankio-postgres2 &
39+
env:
40+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_POSTGRES2 }}
41+
42+
- name: Open redis proxy
43+
run: |
44+
flyctl proxy 6379:6379 --app teerankio-redis &
45+
env:
46+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_REDIS }}
47+
48+
- name: Migrate database
49+
run: |
3950
sleep 2
4051
npx prisma generate --sql --schema=libs/prisma/prisma/schema.prisma
4152
npx nx run-many -t prisma-deploy --parallel=4

0 commit comments

Comments
 (0)