# CPANEL_DEPLOYMENT

1. Buat database MySQL, user, dan izinkan di cPanel.
2. Upload source ke direktori user (misal `/home/USER/bandungcraft`), bukan langsung ke `public_html`.
3. `.env` production, `composer install --no-dev`, `npm run build`.
4. `php artisan key:generate`, `migrate --force`, seed role.
5. DocumentRoot ke `backend/public` (atau `public/` Laravel). Jika tidak bisa, copy isi `public/` ke `public_html` + symlink `storage`.
6. Izin `storage/`, `bootstrap/cache/` 775, bukan root.
7. SSL Let's Encrypt, Force HTTPS.
8. Cron `* * * * * php /home/USER/bandungcraft/artisan schedule:run`.
9. SMTP, backup otomatis, lalu production smoke test.

> JANGAN taruh seluruh source Laravel di `public_html` — hanya direktori `public` yang perlu terekspos.
