We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cbf9c7 commit a3add8dCopy full SHA for a3add8d
.github/workflows/deploy.yml
@@ -33,9 +33,20 @@ jobs:
33
34
- uses: superfly/flyctl-actions/setup-flyctl@master
35
36
- - name: Migrate database
+ - name: Open database proxy
37
run: |
38
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
46
+ FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_REDIS }}
47
48
+ - name: Migrate database
49
50
sleep 2
51
npx prisma generate --sql --schema=libs/prisma/prisma/schema.prisma
52
npx nx run-many -t prisma-deploy --parallel=4
0 commit comments