diff --git a/Emoji.md b/Emoji.md index b1457cc2..2cc1a012 100644 --- a/Emoji.md +++ b/Emoji.md @@ -6,40 +6,79 @@ tags: Emoji-Index. -## 🎒 +## Status -## 🏁 +### 🚧 -## 🧑‍💻 +Entwurf -## 💬 +### 🎒 -## ✅ +Backlog -## ♻️ +### 🏁 -## ⚪ +Bereit -## ⚫ +### 🧑‍💻 -## 🔴 +In Arbeit -## 🔵 +### 💬 -## 🟤 +Feedback +### ✅ -## 🟣 +Erledigt -## 🟢 +### ♻️ -## 🟡 +Postlog -## 🟠 +## Farben -## ⭕ +### ⚪ -## ❓ +Weiss -## ❌ +### ⚫ -## 🚧 +Schwarz + +### 🔴 + +Rot + +### 🔵 + +Blau + +### 🟤 + +Braun + +### 🟢 + +Grün + +### 🟡 + +Gelb + +### 🟠 + +Orange + +## Umgebung + +### 🔬 + +Test + +### 🛠️ + +Entwicklung + +### 🚀 + +Produktion \ No newline at end of file diff --git a/Playbook Upgrade Odoo XX.0.md b/Playbook Upgrade Odoo XX.0.md index 1b54f1fc..22e15de7 100644 --- a/Playbook Upgrade Odoo XX.0.md +++ b/Playbook Upgrade Odoo XX.0.md @@ -29,7 +29,7 @@ Backup database. ssh -p "$PORT" "$SERVER" sudo docker-postgres-backup -c "$POSTGRES_CONTAINER" -d "$DATABASE" ``` -Restore database. +Restore database if target postgres container is different. ```bash ssh -p "$PORT" "$SERVER" sudo docker-postgres-restore -c "$TARGET_POSTGRES_CONTAINER" -d "$DATABASE" -f "/var/tmp/$POSTGRES_CONTAINER/odoo.sql" @@ -43,12 +43,18 @@ Optional: Drop the target database. ssh -p "$PORT" "$SERVER" sudo docker-postgres-drop -c "$TARGET_POSTGRES_CONTAINER" -d "$TARGET_DATABASE" ``` -Run upgrade script. +Run upgrade script in test mode. ```bash ssh -p "$PORT" "$SERVER" sudo docker-odoo-upgrade -c "$TARGET_POSTGRES_CONTAINER" -h "$TARGET_POSTGRES_CONTAINER" -d "$DATABASE" -s "$ODOO_VERSION" -n "$TARGET_DATABASE" -t "$TARGET_ODOO_VERSION" ``` +Run upgrade script in production mode. + +```bash +ssh -p "$PORT" "$SERVER" sudo docker-odoo-upgrade -c "$TARGET_POSTGRES_CONTAINER" -h "$TARGET_POSTGRES_CONTAINER" -d "$DATABASE" -s "$ODOO_VERSION" -n "$TARGET_DATABASE" -t "$TARGET_ODOO_VERSION" -m production +``` + Copy filestore. ```bash @@ -72,4 +78,18 @@ ssh -p "$PORT" "$SERVER" docker-odoo-uninstall -c "$TARGET_ODOO_CONTAINER" -d "$ ## Testing -==Define test cases.== \ No newline at end of file +==Define test cases.== + +## Production + +Rename the databases. + +```bash +ssh -p "$PORT" "$SERVER" docker-postgres-rename -c "$POSTGRES_CONTAINER" -s "$DATABASE" -t "${DATABASE}-tmp" +ssh -p "$PORT" "$SERVER" docker-postgres-rename -c "$TARGET_POSTGRES_CONTAINER" -s "$TARGET_DATABASE" -t "$DATABASE" +ssh -p "$PORT" "$SERVER" docker-postgres-rename -c "$POSTGRES_CONTAINER" -s "${DATABASE}-tmp" -t "$TARGET_DATABASE" +``` + +::: tip +The filestore doesn't have to be renamed as we copied it in the upgrade step. +::: \ No newline at end of file diff --git a/Processes Infrastructure - Upgrade Odoo.md b/Processes Infrastructure - Upgrade Odoo.md index 8cc24182..4c0ac9c8 100644 --- a/Processes Infrastructure - Upgrade Odoo.md +++ b/Processes Infrastructure - Upgrade Odoo.md @@ -24,7 +24,7 @@ Working steps: ``` Guten Tag -Diese Odoo Installation wird innerhalb der nächsten zwei Stunden von Version 16.0 auf 18.0 aktualisiert. +Diese Odoo Installation wird innerhalb der nächsten Stunde von Version 16.0 auf 18.0 aktualisiert. Wir bitten Sie während dieser Zeit keine Bearbeitungen in Odoo vorzunehmen. Alle Änderungen ab jetzt werden nicht in der aktualisierten Odoo Installation sein. @@ -33,7 +33,10 @@ Mit freundlichen Grüssen Mint System Team ``` -* Execute the production upgrade according to the upgrade playbook. +* Execute the production upgrade according to the playbook +* Switch `$ALIAS` and `$ALIAS_upgrade` +* Move database and backup config +* Enable proxy redirect to new instance * Message to customer: ``` @@ -48,4 +51,5 @@ Wir bitten Sie die Odoo Installation zu verfizieren und allfällige Fehler zu me Mit freundlichen Grüssen Mint System Team -``` \ No newline at end of file +``` +