# Staging Go-Live Step 8

Checklist ini dipakai saat staging pertama kali dibuat di Rumahweb/cPanel.

## Data yang harus disiapkan

- [ ] GitHub private repository URL.
- [ ] Username cPanel.
- [ ] Path staging, contoh `/home/USERNAME/public_html/staging-perawat/`.
- [ ] Database staging.
- [ ] User database staging.
- [ ] Password database staging.
- [ ] URL staging.
- [ ] Token healthcheck staging.

## Di lokal sebelum push

```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 USERNAME public_html/staging-perawat
bash scripts/init_git_branches.sh git@github.com:OWNER/REPO.git
git push -u origin main
git push -u origin develop
```

## Di cPanel staging

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

Jika tidak memakai bash script:

```bash
php scripts/create_env.php staging
nano .env
php scripts/post_deploy.php
php scripts/preflight.php
php scripts/deploy_ready.php staging
php scripts/step7_smoke_test.php
php scripts/migrate.php status
```

## Test manual

- [ ] Login.
- [ ] Dashboard.
- [ ] Logbook & KPI.
- [ ] Jadwal jaga.
- [ ] Kegiatan harian.
- [ ] Work order.
- [ ] Upload dokumen.
- [ ] Export Excel.
- [ ] Logout.

