You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.1 KiB
44 lines
1.1 KiB
--- |
|
description: Aturan dan prosedur deployment |
|
globs: ["scripts/**", "*.yaml", "Dockerfile", ".env.example"] |
|
alwaysApply: false |
|
--- |
|
|
|
# Deployment Rules |
|
|
|
## Deploy geonet-console |
|
|
|
```powershell |
|
.\scripts\deploy-geonet-console.ps1 |
|
``` |
|
|
|
Atau manual: |
|
1. `tar -czf` — exclude vendor, .git, node_modules |
|
2. Upload via `Start-Process cmd.exe` + SSH cat |
|
3. Extract di `/opt/stacks/geonet-console/` |
|
4. `docker compose up -d --build --force-recreate` |
|
|
|
## Larangan Deploy |
|
|
|
- ❌ JANGAN overwrite `.env` di server |
|
- ❌ JANGAN jalankan `migrate:fresh` di production |
|
- ❌ JANGAN gunakan `&&` di PowerShell — gunakan `;` |
|
|
|
## Setelah Deploy |
|
|
|
- Cek: `docker ps --filter name=geonet-console` |
|
- Cek log: `docker logs geonet-console --tail 30` |
|
- Test URL: `https://console.gisportal.id` |
|
|
|
## Stack Paths di Server 10.100.1.24 |
|
|
|
| App | Path | |
|
|-----|------| |
|
| geonet-console | `/opt/stacks/geonet-console/` | |
|
| databaselist | `/opt/stacks/databaselist/` | |
|
| sqlservercheck | `/opt/stacks/sqlservercheck/` | |
|
| my-portal | `/opt/stacks/my-portal/` | |
|
|
|
## SSH |
|
|
|
Semua SSH ke 10.100.1.24 wajib minta persetujuan user terlebih dahulu.
|
|
|