- FastAPI 백엔드 (audio-studio-api) - Next.js 프론트엔드 (audio-studio-ui) - Qwen3-TTS 엔진 (audio-studio-tts) - MusicGen 서비스 (audio-studio-musicgen) - Docker Compose 개발/운영 환경 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
143 lines
2.9 KiB
Markdown
143 lines
2.9 KiB
Markdown
# Gitea 워크플로우 (Gitea Workflow)
|
|
|
|
Gitea 리포지토리 관리 워크플로우입니다.
|
|
|
|
## Gitea 서버 정보
|
|
|
|
- **URL**: http://gitea.yakenator.io
|
|
- **사용자**: yakenator
|
|
- **비밀번호**: asdfg23we
|
|
|
|
## 새 리포지토리 생성
|
|
|
|
### 1. Gitea CLI (tea) 사용
|
|
```bash
|
|
# tea 설치 (macOS)
|
|
brew install tea
|
|
|
|
# 로그인
|
|
tea login add --url http://gitea.yakenator.io --user yakenator --password asdfg23we
|
|
|
|
# 리포지토리 생성
|
|
tea repo create --name {repo-name} --private=false
|
|
```
|
|
|
|
### 2. API 사용
|
|
```bash
|
|
# 리포지토리 생성
|
|
curl -X POST "http://gitea.yakenator.io/api/v1/user/repos" \
|
|
-H "Content-Type: application/json" \
|
|
-u "yakenator:asdfg23we" \
|
|
-d '{
|
|
"name": "{repo-name}",
|
|
"description": "서비스 설명",
|
|
"private": true,
|
|
"auto_init": true
|
|
}'
|
|
```
|
|
|
|
### 3. 웹 UI 사용
|
|
1. http://gitea.yakenator.io 접속
|
|
2. yakenator / asdfg23we 로 로그인
|
|
3. "New Repository" 클릭
|
|
4. 리포지토리 정보 입력 후 생성
|
|
|
|
## 새 프로젝트 초기화 및 푸시
|
|
|
|
### 전체 워크플로우
|
|
```bash
|
|
# 1. 프로젝트 디렉토리 생성
|
|
mkdir ./{new-project}
|
|
cd ./{new-project}
|
|
|
|
# 2. Git 초기화
|
|
git init
|
|
|
|
# 3. 파일 생성 (Dockerfile, requirements.txt 등)
|
|
|
|
# 4. 첫 커밋
|
|
git add -A
|
|
git commit -m "Initial commit: {project-name} 초기 구성
|
|
|
|
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>"
|
|
|
|
# 5. Gitea에 리포지토리 생성 (API)
|
|
curl -X POST "http://gitea.yakenator.io/api/v1/user/repos" \
|
|
-H "Content-Type: application/json" \
|
|
-u "yakenator:asdfg23we" \
|
|
-d '{"name": "{new-project}", "private": false}'
|
|
|
|
# 6. Remote 추가 및 푸시
|
|
git remote add origin http://yakenator:asdfg23we@gitea.yakenator.io/yakenator/{new-project}.git
|
|
git branch -M main
|
|
git push -u origin main
|
|
```
|
|
|
|
## 기존 리포지토리 클론
|
|
|
|
```bash
|
|
# HTTP 클론 (인증 포함)
|
|
git clone http://yakenator:asdfg23we@gitea.yakenator.io/yakenator/{repo-name}.git
|
|
|
|
# 또는 클론 후 credential 설정
|
|
git clone http://gitea.yakenator.io/yakenator/{repo-name}.git
|
|
cd {repo-name}
|
|
git config credential.helper store
|
|
```
|
|
|
|
## 리포지토리 URL 패턴
|
|
|
|
```
|
|
http://gitea.yakenator.io/yakenator/{repo-name}.git
|
|
```
|
|
|
|
## 커밋 및 푸시
|
|
|
|
```bash
|
|
# 변경사항 확인
|
|
git status
|
|
|
|
# 스테이징 및 커밋
|
|
git add -A
|
|
git commit -m "$(cat <<'EOF'
|
|
feat: 기능 설명
|
|
|
|
- 변경사항 1
|
|
- 변경사항 2
|
|
|
|
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
|
EOF
|
|
)"
|
|
|
|
# 푸시
|
|
git push
|
|
```
|
|
|
|
## 브랜치 전략
|
|
|
|
```bash
|
|
# 기본 브랜치: main
|
|
# 기능 브랜치: feature/{기능명}
|
|
# 버그 수정: fix/{버그설명}
|
|
|
|
# 브랜치 생성 및 전환
|
|
git checkout -b feature/new-feature
|
|
|
|
# 작업 후 푸시
|
|
git push -u origin feature/new-feature
|
|
|
|
# PR 생성 (웹 UI 또는 API)
|
|
```
|
|
|
|
## 주의사항
|
|
|
|
- 민감 정보(.env, credentials)는 절대 커밋하지 않음
|
|
- .gitignore에 다음 항목 포함:
|
|
```
|
|
.env
|
|
__pycache__/
|
|
*.pyc
|
|
node_modules/
|
|
.DS_Store
|
|
```
|