# Step 8 - Deployment Kit

Step 8 menambahkan alat bantu supaya implementasi GitHub dan cPanel lebih praktis.

## File baru

```text
deploy/cpanel/values.example.env
scripts/setup_deploy_wizard.php
scripts/cpanel_first_run.sh
deploy/checklists/staging-go-live-step8.md
README_DEPLOY_RUMAHWEB_STEP8.md
```

## Alur kerja

1. Copy template nilai deploy.
2. Isi GitHub remote, username cPanel, URL, dan target folder.
3. Generate deploy plan.
4. Generate `.cpanel.yml`.
5. Push ke GitHub.
6. Clone dari cPanel Git Version Control.
7. Jalankan first-run check di Terminal cPanel.

## Command lokal

```bash
cp deploy/cpanel/values.example.env deploy/cpanel/values.env
nano deploy/cpanel/values.env
php scripts/setup_deploy_wizard.php staging
php scripts/generate_cpanel_yml.php staging itcd5572 public_html/staging-perawat
```

Hasil deploy plan akan dibuat di:

```text
deploy/generated/deploy-plan-staging.md
```

## Command cPanel

```bash
bash scripts/cpanel_first_run.sh staging
```

Untuk production:

```bash
bash scripts/cpanel_first_run.sh production
```

## Catatan

File `deploy/cpanel/values.env` berisi konfigurasi lokal dan tidak perlu di-commit jika berisi data nyata server.

