New task
## 작업 결과
**색상 통일 (화이트 테마):**
- `CouponInput.vue` — 결과 행 배경 `#0f172a` → `#f8fafc`, 텍스트/배지 라이트로
- `CouponManager.vue` — 입력창/쿠폰 리스트 배경/텍스트 전체 라이트로
- `HistoryList.vue` — 이력 아이템 배경/텍스트 라이트로, 스크롤바도 라이트
**CI/CD 설정:**
- Gitea `git.wageulwageul.com/hyoseung/coupon` 레포 생성
- `.gitea/workflows/deploy.yml` — front/back 각각 빌드 후 rsync 배포
- 백엔드 `ubuntu` PM2 → `hyoseung` PM2로 마이그레이션 (CI/CD 권한 문제 해결)
- 첫 푸시에 CI/CD 자동 실행 완료 ✅
이제부터는 `autoCoupon/` 폴더에서 코드 수정 후 `git push origin main` 하면 자동 배포됩니다.
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
name: Build and Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy-front:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install front dependencies
|
||||
run: cd front && npm ci
|
||||
|
||||
- name: Build front
|
||||
run: cd front && npm run build
|
||||
|
||||
- name: Deploy front
|
||||
run: rsync -a --delete front/dist/ /home/hyoseung/coupon/dist/
|
||||
|
||||
deploy-back:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install back dependencies
|
||||
run: cd back && npm ci
|
||||
|
||||
- name: Build back
|
||||
run: cd back && npm run build
|
||||
|
||||
- name: Deploy back
|
||||
run: |
|
||||
rsync -a --delete back/dist/ /home/hyoseung/coupon/back/dist/
|
||||
cd /home/hyoseung/coupon/back
|
||||
pm2 restart coupon-back || pm2 start ecosystem.config.js
|
||||
pm2 save
|
||||
Reference in New Issue
Block a user