Restore Traefik dynamic public_share config and copy it during auto-deploy
This commit is contained in:
@@ -77,6 +77,19 @@ echo "Restarting flutter-web container..."
|
||||
cd /opt/traefik
|
||||
docker-compose up -d --force-recreate flutter-web
|
||||
|
||||
# Copy Traefik dynamic configs (public share proxy)
|
||||
echo "Copying traefik dynamic configs..."
|
||||
mkdir -p /opt/traefik/dynamic
|
||||
if [ -d "$DEPLOY_DIR/traefik/dynamic" ]; then
|
||||
cp -r "$DEPLOY_DIR/traefik/dynamic"/* /opt/traefik/dynamic/ || true
|
||||
fi
|
||||
|
||||
# Reload Traefik to pick up dynamic config
|
||||
echo "Reloading Traefik..."
|
||||
cd /opt/traefik
|
||||
# Try graceful recreate, fallback to restart
|
||||
docker-compose up -d --no-deps --force-recreate traefik || docker-compose restart traefik
|
||||
|
||||
echo "=== Deployment completed successfully at $(date) ==="
|
||||
|
||||
# Record deployment time
|
||||
|
||||
Reference in New Issue
Block a user