feat: 프로젝트 기본 구조 구축

This commit is contained in:
2025-10-04 22:11:32 +09:00
parent 01403c7df4
commit ab99abad8a
36 changed files with 32356 additions and 199 deletions

21
docker-entrypoint.sh Executable file
View 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 "$@"