Betriebsanleitung: Umstellung auf v1.0.1, fileMode und info/exclude
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c44fffb3b9
commit
0c8a9b20c4
1 changed files with 11 additions and 7 deletions
|
|
@ -80,8 +80,9 @@ In Ploi: **„Quick Deploy“ und Deploy-Webhook aus.** Horizon einrichten: Absc
|
|||
|
||||
## B — Einmalig: Live-Verzeichnis an Ort und Stelle zum Checkout machen
|
||||
|
||||
Voraussetzung: Tag `v1.0.0` ist auf `origin` (siehe C). Der erste Tag enthält **alles**, was bis dahin
|
||||
auf `master` liegt — alles, was noch nicht live sein soll, gehört vorher nicht nach `master`.
|
||||
Umgestellt wird direkt auf **`v1.0.1`** (nicht `v1.0.0`): ab `v1.0.1` sind `storage/fonts`,
|
||||
`storage/reports`, `storage/oauth-*.key` und `_static/` nicht mehr versioniert — ein Checkout von
|
||||
`v1.0.0` nach `v1.0.1` würde sie auf Live löschen.
|
||||
|
||||
```bash
|
||||
cd /home/ploi
|
||||
|
|
@ -90,9 +91,11 @@ cd mivita.care
|
|||
git init -q
|
||||
git remote add origin ssh://git@forge.adametz.media:222/kadmin/mivita.git
|
||||
git fetch --tags origin
|
||||
git update-ref --no-deref HEAD "$(git rev-parse 'v1.0.0^{commit}')"
|
||||
git config core.fileMode false # Dateirechte (SFTP 644 vs. Repo 755) nicht als Änderung werten
|
||||
git update-ref --no-deref HEAD "$(git rev-parse 'v1.0.1^{commit}')"
|
||||
git read-tree HEAD # Index = Tag, Dateien bleiben unangetastet
|
||||
git status --porcelain # Abweichungen sichten
|
||||
git show HEAD:.gitignore > .git/info/exclude # Live hatte keine .gitignore; bis zum Checkout
|
||||
git status --porcelain | cut -c1-2 | sort | uniq -c
|
||||
```
|
||||
|
||||
| Zeile | Bedeutung | Vorgehen |
|
||||
|
|
@ -117,8 +120,9 @@ Erwartete Funde bei mivita:
|
|||
Wenn nichts Unerklärtes übrig ist:
|
||||
|
||||
```bash
|
||||
git checkout -q -f --detach v1.0.0
|
||||
echo v1.0.0 > RELEASE
|
||||
git checkout -q -f --detach v1.0.1
|
||||
: > .git/info/exclude # ab jetzt gilt die .gitignore aus dem Checkout
|
||||
echo v1.0.1 > RELEASE
|
||||
git status --porcelain # muss leer sein
|
||||
composer install --no-dev --optimize-autoloader --no-interaction
|
||||
php artisan config:clear && php artisan route:clear && php artisan view:clear
|
||||
|
|
@ -127,7 +131,7 @@ echo "" | sudo -S service php8.4-fpm reload
|
|||
php artisan about --only=mivita && php artisan monitoring:queue-probe --wait=60
|
||||
```
|
||||
|
||||
Bringt `v1.0.0` gegenüber Live neue Migrationen mit: vorher DB-Backup, nach dem Checkout `php artisan migrate --force`.
|
||||
Bringt `v1.0.1` gegenüber Live neue Migrationen mit: vorher DB-Backup, nach dem Checkout `php artisan migrate --force`.
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue