Skip to content

Commit a0b77d1

Browse files
committed
Update deployment workflow to run debug environment command instead of database migration
1 parent 57369ea commit a0b77d1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
--task-definition $TASK_DEF_ARN \
105105
--launch-type FARGATE \
106106
--network-configuration "awsvpcConfiguration={subnets=[$(aws ec2 describe-subnets --filters "Name=tag:Name,Values=*pathfinder-vpc-private*" --query 'Subnets[*].SubnetId' --output text | tr '\t' ',')],securityGroups=[$(aws ec2 describe-security-groups --filters "Name=tag:Name,Values=*pathfinder-service-sg*" --query 'SecurityGroups[0].GroupId' --output text)],assignPublicIp=ENABLED}" \
107-
--overrides '{"containerOverrides":[{"name":"pathfinder-app","command":["bun","run","db:migrate"]}]}' \
107+
--overrides '{"containerOverrides":[{"name":"pathfinder-app","command":["bun","run","debug:env"]}]}' \
108108
--query 'tasks[0].taskArn' \
109109
--output text)
110110

apps/web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"db:migrate:runtime": "tsx scripts/run-migrations.ts",
1515
"db:check": "drizzle-kit check",
1616
"db:drop": "drizzle-kit drop",
17+
"debug:env": "node -e \"console.log('DATABASE_URL exists:', !!process.env.DATABASE_URL); console.log('DATABASE_URL length:', process.env.DATABASE_URL?.length || 0); console.log('All env vars:', Object.keys(process.env).length);\"",
1718
"test:env": "tsx scripts/test-env.ts",
1819
"type-check": "tsc --noEmit"
1920
},

0 commit comments

Comments
 (0)