From 59955368fab63ad4a28105b58c473a3aaf99d58e Mon Sep 17 00:00:00 2001 From: shadrach Date: Mon, 16 Dec 2024 11:02:54 +0100 Subject: [PATCH] show logs in ci script --- .github/workflows/deploy-sync-server.yaml | 6 ++++++ sync-server/wrangler.toml | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-sync-server.yaml b/.github/workflows/deploy-sync-server.yaml index 0624096d..bf5800c6 100644 --- a/.github/workflows/deploy-sync-server.yaml +++ b/.github/workflows/deploy-sync-server.yaml @@ -14,6 +14,9 @@ jobs: timeout-minutes: 60 steps: - uses: actions/checkout@v4 + - name: Show github ref + run: | + echo ${{ github.ref }} - name: Build & Deploy Worker (Dev) if: github.ref == 'refs/heads/tay/automerge-party-flagged' uses: cloudflare/wrangler-action@v3 @@ -22,6 +25,7 @@ jobs: accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} environment: staging workingDirectory: sync-server + wranglerVersion: 3.95.0 - name: Build & Deploy Worker (Staging) if: github.ref == 'refs/heads/develop' uses: cloudflare/wrangler-action@v3 @@ -30,6 +34,7 @@ jobs: accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} environment: staging workingDirectory: sync-server + wranglerVersion: 3.95.0 - name: Build & Deploy Worker (Production) if: github.ref == 'refs/heads/main' uses: cloudflare/wrangler-action@v3 @@ -38,3 +43,4 @@ jobs: accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} environment: production workingDirectory: sync-server + wranglerVersion: 3.95.0 diff --git a/sync-server/wrangler.toml b/sync-server/wrangler.toml index c2492116..a0973272 100644 --- a/sync-server/wrangler.toml +++ b/sync-server/wrangler.toml @@ -20,17 +20,17 @@ head_sampling_rate = 1 # optional. default = 1. [[hyperdrive]] binding = "NODES_DB" id = "856af129675e4140accc0ccabbc2ee20" -localConnectionString = "postgresql://walter:white@host.docker.internal:5434/boilerplate" +localConnectionString = "postgresql://walter:white@host.docker.internal:5433/boilerplate" [vars] DB_TABLE= "DocumentStore" NODES_API= "http://localhost:5420" ENVIRONMENT="dev" -DATABASE_URL= "postgresql://walter:white@host.docker.internal:5434/boilerplate" +DATABASE_URL= "postgresql://walter:white@host.docker.internal:5433/boilerplate" [env.dev] durable_objects.bindings = [{ name = "Automerge", class_name = "AutomergeServer" }] -vars = { DB_TABLE= "DocumentStore", NODES_API= "http://localhost:5420", ENVIRONMENT="dev", DATABASE_URL= "postgresql://walter:white@host.docker.internal:5434/boilerplate" } +vars = { DB_TABLE= "DocumentStore", NODES_API= "http://localhost:5420", ENVIRONMENT="dev", DATABASE_URL= "postgresql://walter:white@host.docker.internal:5433/boilerplate" } hyperdrive = [{ binding = "NODES_DB", id = "856af129675e4140accc0ccabbc2ee20" }] [env.staging]