From 62c6ca5e878b80522d3a6f6f97f7cf1922615292 Mon Sep 17 00:00:00 2001 From: syntaxbullet Date: Fri, 30 Jan 2026 16:34:14 +0100 Subject: [PATCH] fix: Replace `localhost` with `127.0.0.1` in database connection URLs within CI/deployment scripts. --- .github/workflows/deploy.yml | 4 ++-- shared/scripts/simulate-ci.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 592aea5..2533c1d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -78,7 +78,7 @@ jobs: - name: Setup Test Database run: bun run db:push:local env: - DATABASE_URL: postgresql://postgres:postgres@localhost:5432/aurora_test + DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/aurora_test # Create .env.test for implicit usage by bun DISCORD_BOT_TOKEN: test_token DISCORD_CLIENT_ID: 123 @@ -88,7 +88,7 @@ jobs: run: | # Create .env.test for test-sequential.sh / bun test cat < .env.test - DATABASE_URL="postgresql://postgres:postgres@localhost:5432/aurora_test" + DATABASE_URL="postgresql://postgres:postgres@127.0.0.1:5432/aurora_test" DISCORD_BOT_TOKEN="test_token" DISCORD_CLIENT_ID="123456789" DISCORD_GUILD_ID="123456789" diff --git a/shared/scripts/simulate-ci.sh b/shared/scripts/simulate-ci.sh index 83addfe..8485c39 100755 --- a/shared/scripts/simulate-ci.sh +++ b/shared/scripts/simulate-ci.sh @@ -37,7 +37,7 @@ for i in {1..30}; do done # Define connection string -export DATABASE_URL="postgresql://$DB_USER:$DB_PASS@localhost:$DB_PORT/$DB_NAME" +export DATABASE_URL="postgresql://$DB_USER:$DB_PASS@127.0.0.1:$DB_PORT/$DB_NAME" # 2. Create Config File (Match deploy.yml) echo "📝 Creating shared/config/config.json..."