Skip to content

Commit e8442b0

Browse files
committed
fix: backend_entrypoint.sh 내 서브커맨드 활용 방식으로 변경
1 parent 9b2eb79 commit e8442b0

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/deploy-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ jobs:
4747
docker compose -f docker-compose.yml -f docker-compose.build.yml build
4848
4949
echo "🗄️ DB 마이그레이션 실행..."
50-
# 인자 없이 실행 → 미적용된 모든 migration을 자동으로 반영
50+
# init subcommand: DB 연결 대기 + migrate + redis migrate 자동 처리
5151
docker compose -f docker-compose.yml -f docker-compose.build.yml \
52-
run --rm cvat_server python manage.py migrate
52+
run --rm cvat_server init
5353
5454
echo "🚀 Starting services..."
5555
export CVAT_HOST=172.16.0.172

.github/workflows/deploy-single.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@ jobs:
147147
-f docker-compose.single.yml \
148148
pull
149149
150-
echo "️ DB 마이그레이션 실행..."
151-
# 인자 없이 실행 → 미적용된 모든 migration을 자동으로 반영
150+
echo "🗄️ DB 마이그레이션 실행..."
151+
# init subcommand: DB 연결 대기 + migrate + redis migrate 자동 처리
152152
docker compose \
153153
-f docker-compose.yml \
154154
-f docker-compose.single.yml \
155-
run --rm cvat_server python manage.py migrate
155+
run --rm cvat_server init
156156
157-
echo "🚀 서비스 기동..."
157+
echo "🚀 서비스 기동..."
158158
docker compose \
159159
-f docker-compose.yml \
160160
-f docker-compose.single.yml \

0 commit comments

Comments
 (0)