duckil_plm/setup.sh

31 lines
739 B
Bash
Raw Normal View History

2024-12-12 18:31:36 +09:00
# setup.sh
#!/bin/bash
# 필요한 디렉토리 생성
mkdir -p backups logs config/{prometheus,grafana,mosquitto}
# 스크립트 실행 권한 부여
chmod +x start-dev.sh start-prod.sh start-full.sh stop.sh logs.sh restart.sh backup.sh monitor.sh
# .env 파일 생성
# if [ ! -f .env.development ]; then
# cp .env.example .env.development
# echo "Created .env.development - please update with your settings"
# fi
# if [ ! -f .env.production ]; then
# cp .env.example .env.production
# echo "Created .env.production - please update with your settings"
# fi
# Git ignore 설정
if [ ! -f .gitignore ]; then
echo ".env*
!.env.example
backups/
logs/
node_modules/
.DS_Store" > .gitignore
fi
echo "Setup completed!"