Add pull scripts untuk update di server production
This commit is contained in:
24
README.md
24
README.md
@@ -58,3 +58,27 @@ 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
|
||||
bash pull.sh
|
||||
|
||||
# Windows
|
||||
cd C:\path\to\retribusi-frontend
|
||||
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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user