Skip to content

Commit d8cf89b

Browse files
baijumclaude
andcommitted
fix: only start app service in preview deploy
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4453699 commit d8cf89b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ jobs:
4646
sed "s|^DATABASE_URL=.*|DATABASE_URL=postgresql://postgres:$(grep POSTGRES_PASSWORD /opt/platform/.env | cut -d= -f2)@postgres:5432/${APP_DB}?options=-csearch_path%3D${SCHEMA_NAME}|" \
4747
deploy/.env > deploy/.env.pr-${PR_NUMBER}
4848
49-
# Build and start preview containers
49+
# Build and start the app container (skip optional services like celery-worker)
5050
docker compose -p ${APP_NAME}-pr-${PR_NUMBER} -f deploy/docker-compose.yml \
51-
--env-file deploy/.env.pr-${PR_NUMBER} up -d --build
51+
--env-file deploy/.env.pr-${PR_NUMBER} up -d --build app
5252
5353
# Run database migrations against the preview schema
5454
docker compose -p ${APP_NAME}-pr-${PR_NUMBER} -f deploy/docker-compose.yml \

0 commit comments

Comments
 (0)