# Production Cutover Step 7

Gunakan checklist ini setelah staging sudah lulus test.

## Sebelum deploy production

- [ ] Backup file production sudah dibuat.
- [ ] Backup database production sudah dibuat.
- [ ] Branch `develop` sudah dites di staging.
- [ ] Branch `main` sudah berisi kode yang sama dengan staging final.
- [ ] `.env` production sudah dibuat langsung di server production.
- [ ] `.cpanel.yml` production sudah memakai path production.
- [ ] Folder `uploads/` production tidak akan ditimpa.
- [ ] Folder `storage/backups/` production tidak akan ditimpa.

## Command production

```bash
php scripts/create_env.php production
php scripts/post_deploy.php
php scripts/preflight.php
php scripts/deploy_ready.php production
php scripts/backup_files.php
php scripts/backup_database.php
php scripts/migrate.php status
```

Jika ada migration baru:

```bash
php scripts/migrate.php up
```

## Setelah deploy

- [ ] Login admin bisa.
- [ ] Dashboard tampil.
- [ ] Logbook & KPI terbuka.
- [ ] Jadwal jaga terbuka.
- [ ] Kegiatan harian terbuka.
- [ ] Work order terbuka.
- [ ] Upload file berhasil.
- [ ] Export Excel berhasil.
- [ ] `storage/logs/php-error.log` tidak berisi fatal error baru.
