cleanup: remove MariaDB dependencies and files
Some checks failed
Deploy to Vercel / deploy (push) Has been cancelled
Deploy to Railway / deploy (push) Has been cancelled

- Remove MariaDB helper, schema, and initialization script
- Remove mysql2 dependency from package.json
- Update reset-admin.js to use SQLite DatabaseHelper
- Simplify .env.example to remove MariaDB configuration
- Update start-service.sh to use SQLite initialization
- Clean up all MariaDB references across codebase

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-08-25 14:08:44 +09:00
parent 80f147731e
commit d3d8aa48b6
7 changed files with 21 additions and 466 deletions

View File

@@ -40,23 +40,16 @@ if [ ! -d "node_modules" ]; then
$NPM_PATH install
fi
# MariaDB 데이터베이스 초기화
echo "MariaDB 데이터베이스 초기화 중..."
if [ -f "scripts/init-mariadb.js" ]; then
# NAS 환경 설정
export NODE_ENV=production
export DEPLOY_ENV=nas
if $NPM_PATH run init-mariadb; then
echo "✅ MariaDB 초기화 완료"
# SQLite 데이터베이스 초기화 (선택적)
if [ "$INIT_DB" = "true" ] && [ -f "scripts/init-database.js" ]; then
echo "SQLite 데이터베이스 초기화 중..."
if $NPM_PATH run init-db; then
echo "✅ SQLite 초기화 완료"
else
echo "⚠️ MariaDB 초기화 실패"
echo "💡 수동으로 MariaDB를 설정해야 할 수 있습니다."
echo "자세한 내용은 mariadb-setup.md를 참조하세요."
echo "⚠️ SQLite 초기화 실패"
fi
else
echo " MariaDB 초기화 스크립트를 찾을 수 없습니다."
echo "💡 수동으로 MariaDB를 설정하세요."
echo " 데이터베이스 초기화 건너뜀 (INIT_DB=true로 설정시 초기화)"
fi
# 기존 프로세스 종료
@@ -72,9 +65,8 @@ fi
# 서비스 시작
echo "서비스 시작 중..."
# NAS 환경 변수 설정
# NAS 환경 변수 설정 (SQLite 사용)
export NODE_ENV=production
export DEPLOY_ENV=nas
export HOST=0.0.0.0
export PORT=3005