# GitHub + cPanel Checklist Step 7

## GitHub

- [ ] Buat repository private di GitHub.
- [ ] Push branch `main`.
- [ ] Push branch `develop`.
- [ ] Pastikan GitHub Actions `php-lint.yml` hijau.

Command awal:

```bash
bash scripts/init_git_branches.sh git@github.com:OWNER/REPO.git
git push -u origin main
git push -u origin develop
```

## cPanel Staging

- [ ] Buat subdomain staging, contoh `staging.perawat.itcprogram.com`.
- [ ] Buka Git Version Control di cPanel.
- [ ] Clone repository GitHub.
- [ ] Pilih branch `develop`.
- [ ] Deploy path diarahkan ke folder staging.
- [ ] Jalankan `php scripts/create_env.php staging`.
- [ ] Edit `.env` staging.
- [ ] Jalankan `php scripts/post_deploy.php`.
- [ ] Jalankan `php scripts/deploy_ready.php staging`.

## cPanel Production

- [ ] Git Version Control production memakai branch `main`.
- [ ] Deploy path diarahkan ke folder production.
- [ ] `.env` production dibuat langsung di server.
- [ ] Jalankan backup sebelum deploy.
- [ ] Jalankan `php scripts/deploy_ready.php production`.
