fix: Replace localhost with 127.0.0.1 in database connection URLs within CI/deployment scripts.

This commit is contained in:
syntaxbullet
2026-01-30 16:34:14 +01:00
parent aac9be19f2
commit 62c6ca5e87
2 changed files with 3 additions and 3 deletions

View File

@@ -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 <<EOF > .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"

View File

@@ -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..."