Deploy-Fix: nginx routet /w (Wallet) zum Backend + nginx-Recreate bei Rollout
- nginx.prod.conf: /w (Wallet-Landing, .pkpass, Google-Redirect, Logo) fehlte in der Backend-Location-Regex → Wallet-Routen landeten in der SPA (index.html). - update.sh: nginx.prod.conf ist ein Single-File-Bind-Mount (am Inode gepinnt); git reset ersetzt die Datei → nginx-Container force-recreaten, damit die aktuelle Config greift (statt nur reload). Live-Nodes bereits nachgezogen; Apple-Wallet-Pass funktioniert über Caddy. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
c49ff37746
commit
faece5870d
@ -1,6 +1,6 @@
|
|||||||
# Routing auf dem App-Node:
|
# Routing auf dem App-Node:
|
||||||
# /api, /p, /t, /css, /bundles, /health → Symfony (PHP-FPM)
|
# /api, /p, /t, /w, /css, /bundles, /health → Symfony (PHP-FPM)
|
||||||
# alles andere → Vue-SPA (history-fallback)
|
# alles andere → Vue-SPA (history-fallback)
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name _;
|
server_name _;
|
||||||
@ -12,7 +12,7 @@ server {
|
|||||||
client_max_body_size 32m;
|
client_max_body_size 32m;
|
||||||
|
|
||||||
# Symfony-Pfade (API + serverseitige öffentliche Seiten + interne Endpunkte)
|
# Symfony-Pfade (API + serverseitige öffentliche Seiten + interne Endpunkte)
|
||||||
location ~ ^/(api|p|t|css|bundles|health|internal)(/|$) {
|
location ~ ^/(api|p|t|w|css|bundles|health|internal)(/|$) {
|
||||||
root /app/public;
|
root /app/public;
|
||||||
try_files $uri /index.php$is_args$args;
|
try_files $uri /index.php$is_args$args;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,6 +17,9 @@ docker run --rm -e VITE_PUBLIC_BASE="https://$DOMAIN" -v "$REPO_DIR/frontend":/a
|
|||||||
chown -R 1000:1000 "$REPO_DIR"
|
chown -R 1000:1000 "$REPO_DIR"
|
||||||
|
|
||||||
$COMPOSE up -d --build
|
$COMPOSE up -d --build
|
||||||
|
# nginx.prod.conf ist ein Single-File-Bind-Mount (am Inode gepinnt). git reset ersetzt
|
||||||
|
# die Datei (neuer Inode) → Container neu erzeugen, damit die aktuelle Config gemountet wird.
|
||||||
|
$COMPOSE up -d --force-recreate nginx
|
||||||
sleep 8
|
sleep 8
|
||||||
|
|
||||||
# PHP-Abhängigkeiten + Autoloader (vendor/ gitignored, /app als Volume gemountet →
|
# PHP-Abhängigkeiten + Autoloader (vendor/ gitignored, /app als Volume gemountet →
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user