Add: Quick update guide til første deployment af updateto.sh
This commit is contained in:
parent
bcd7f7384a
commit
c08ebedaf5
47
QUICK_UPDATE.md
Normal file
47
QUICK_UPDATE.md
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
# Quick Update Guide - BMC Hub Production
|
||||||
|
|
||||||
|
## Første gang (installer updateto.sh script)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ssh bmcadmin@172.16.31.183
|
||||||
|
cd /srv/podman/bmc_hub_v1.0
|
||||||
|
|
||||||
|
# Pull deployment script fra Git
|
||||||
|
git pull origin main
|
||||||
|
chmod +x updateto.sh
|
||||||
|
|
||||||
|
# Nu kan du bruge scriptet
|
||||||
|
./updateto.sh v1.3.16
|
||||||
|
```
|
||||||
|
|
||||||
|
## Næste gang (når scriptet allerede er installeret)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ssh bmcadmin@172.16.31.183
|
||||||
|
cd /srv/podman/bmc_hub_v1.0
|
||||||
|
./updateto.sh v1.3.16
|
||||||
|
```
|
||||||
|
|
||||||
|
## Manuel deployment (hvis scriptet ikke virker)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd /srv/podman/bmc_hub_v1.0
|
||||||
|
|
||||||
|
# Opdater .env
|
||||||
|
nano .env # Sæt RELEASE_VERSION=v1.3.16
|
||||||
|
|
||||||
|
# Deploy
|
||||||
|
podman-compose down
|
||||||
|
podman-compose up -d --build
|
||||||
|
podman logs -f bmc-hub-api-prod
|
||||||
|
```
|
||||||
|
|
||||||
|
## Sync efter deployment
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 1. Sync e-conomic (PRIMARY SOURCE - opretter alle kunder)
|
||||||
|
curl -X POST http://localhost:8000/api/v1/system/sync/economic
|
||||||
|
|
||||||
|
# 2. Sync vTiger (linker vTiger IDs til eksisterende kunder)
|
||||||
|
curl -X POST http://localhost:8000/api/v1/system/sync/vtiger
|
||||||
|
```
|
||||||
Loading…
Reference in New Issue
Block a user