Deploy Laravel rebuild via Coolify

Point Docker and Coolify compose to the Laravel rebuild app so mahasiswa, dosen, and admin flows are served from the new Laravel public entrypoint.
This commit is contained in:
Power BI Dev
2026-05-03 18:50:29 +07:00
parent 89ce9d30a7
commit dab8ea396b
107 changed files with 17544 additions and 20 deletions

70
rebuild/README.md Normal file
View File

@@ -0,0 +1,70 @@
# SPOTA Rebuild
Laravel Blade + Tailwind prototype untuk rebuild penuh antarmuka SPOTA.
## Current scope
- Landing page dan gateway masuk untuk mahasiswa, dosen, dan admin
- Auth rebuild yang membaca tabel legacy `tbmhs`, `tbdosen`, dan `tbadmin`
- Dashboard mahasiswa, dosen, dan admin berbasis data legacy
- Modul native awal untuk praoutline, pengumuman, penawaran judul, early warning, dan CRUD admin prioritas
- Fondasi Laravel terpisah dari aplikasi legacy supaya migrasi bisa bertahap
## Run locally
```powershell
copy .env.example .env
php artisan serve
npm run dev
```
Atau build asset production:
```powershell
npm run build
```
## Docker and Coolify
Compose utama dan compose Coolify sekarang menjalankan Laravel rebuild dari `Dockerfile.rebuild` dengan document root Apache ke `rebuild/public`.
Untuk Coolify, gunakan compose file:
```text
docker-compose.coolify.yml
```
Environment yang sebaiknya diisi di Coolify:
```dotenv
APP_URL=https://domain-spota.example
APP_ENV=production
APP_DEBUG=false
APP_KEY=base64:isi_dengan_key_production
DB_USER=spota_user
DB_PASSWORD=spota_password
MYSQL_ROOT_PASSWORD=root_password_yang_kuat
DB_NAME=spota_spotadb
```
Jika `APP_KEY` kosong, container akan generate key otomatis saat start. Untuk production lebih aman isi `APP_KEY` permanen supaya session tidak berubah antar redeploy.
## Legacy database setup
Ubah `.env` agar rebuild memakai database SPOTA legacy, misalnya:
```dotenv
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3307
DB_DATABASE=spota_spotadb
DB_USERNAME=spota_user
DB_PASSWORD=spota_password
SESSION_DRIVER=file
```
Catatan:
- Dashboard mahasiswa membaca data real dari `tbmhs`, `tbpraoutline`, `tbrekaphasil`, `tbpengumuman`, `tmp_notif`, dan `tbjadwal`
- Dashboard dosen membaca data real dari modul praoutline, pengumuman, jadwal, penawaran judul, dan early warning
- Dashboard admin membaca data real dari master data, praoutline, pengumuman, jadwal, dan pengaturan prodi