feat: 프로젝트 기본 구조 구축
This commit is contained in:
21
docker-entrypoint.sh
Executable file
21
docker-entrypoint.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "Starting Django application..."
|
||||
|
||||
# 데이터베이스 마이그레이션
|
||||
echo "Running database migrations..."
|
||||
python manage.py migrate --noinput
|
||||
|
||||
# 전략 초기화
|
||||
echo "Initializing strategies..."
|
||||
python manage.py init_strategies
|
||||
|
||||
# 정적 파일 수집 (production 환경에서만)
|
||||
if [ "$DJANGO_ENV" = "production" ]; then
|
||||
echo "Collecting static files..."
|
||||
python manage.py collectstatic --noinput
|
||||
fi
|
||||
|
||||
# 전달된 명령어 실행
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user