Fix ERR_TOO_MANY_REDIRECTS: hapus public/index.php dan tambah guard untuk prevent redirect loop
This commit is contained in:
@@ -43,6 +43,7 @@ retribusi (frontend)/
|
||||
## Konfigurasi
|
||||
|
||||
File `public/dashboard/js/config.js` mengatur:
|
||||
|
||||
- API Base URL (auto-detect local/production)
|
||||
- API Key untuk autentikasi
|
||||
|
||||
@@ -55,12 +56,14 @@ File `public/dashboard/js/config.js` mengatur:
|
||||
## Production
|
||||
|
||||
Deploy ke web server (Apache/Nginx) dengan konfigurasi:
|
||||
|
||||
- Base URL: sesuai dengan domain production
|
||||
- API Base URL: otomatis terdeteksi dari hostname
|
||||
|
||||
### Update di Server Production
|
||||
|
||||
**Cara 1: Menggunakan Script (Recommended)**
|
||||
|
||||
```bash
|
||||
# Linux/Unix
|
||||
cd /path/to/retribusi-frontend
|
||||
@@ -72,17 +75,20 @@ pull.bat
|
||||
```
|
||||
|
||||
**Cara 2: Command Langsung (Sekali Jalan)**
|
||||
|
||||
```bash
|
||||
cd /path/to/retribusi-frontend && git stash && git pull origin main && git stash pop
|
||||
```
|
||||
|
||||
**Cara 3: Manual**
|
||||
|
||||
```bash
|
||||
cd /path/to/retribusi-frontend
|
||||
git pull origin main
|
||||
```
|
||||
|
||||
**Fix Dubious Ownership Error (jika muncul)**
|
||||
|
||||
```bash
|
||||
# Tambahkan directory ke safe.directory
|
||||
git config --global --add safe.directory /www/wwwroot/retribusi.btekno.cloud/retribusi
|
||||
@@ -90,4 +96,3 @@ git config --global --add safe.directory /www/wwwroot/retribusi.btekno.cloud/ret
|
||||
# Atau gunakan script pull.sh yang sudah auto-fix
|
||||
bash pull.sh
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user