fix: add environment variables to deploy script and E2E tests
TaxBaik CI/CD / build-and-deploy (push) Failing after 3m11s
TaxBaik CI/CD / build-and-deploy (push) Failing after 3m11s
- Add ConnectionStrings__Default env var to deploy_gb.sh for production deployment - Add DOTNET_PRINT_TELEMETRY_MESSAGE=false to suppress telemetry - Update E2E tests to support env vars (E2E_BASE_URL, E2E_ADMIN_USERNAME, E2E_ADMIN_PASSWORD) - Fixes 'Missing connection string' error on new deployments Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -67,6 +67,8 @@ echo "=== Starting New App on Port $TARGET_PORT ==="
|
||||
cd "$DEPLOY_DIR"
|
||||
export ASPNETCORE_ENVIRONMENT=Production
|
||||
export ASPNETCORE_URLS="http://127.0.0.1:$TARGET_PORT"
|
||||
export ConnectionStrings__Default="Host=localhost;Database=taxbaikdb;Username=taxbaik;Password=taxbaik123"
|
||||
export DOTNET_PRINT_TELEMETRY_MESSAGE=false
|
||||
|
||||
# Run dotnet process
|
||||
nohup /usr/bin/dotnet TaxBaik.Web.dll > "web_${TARGET_PORT}.log" 2>&1 &
|
||||
|
||||
Reference in New Issue
Block a user