Enhance deployment process: Add cleanup steps for frontend artifacts in deploy.sh to ensure a clean build environment. Update axios.js to improve token handling and response error management, ensuring proper logout flow. Update index.html with new asset references for improved caching.
All checks were successful
Deploy miriamgemeinde / deploy (push) Successful in 7s
All checks were successful
Deploy miriamgemeinde / deploy (push) Successful in 7s
This commit is contained in:
@@ -34,6 +34,11 @@ if ! ensure_command npm; then err "npm not found in PATH"; exit 127; fi
|
||||
log "Fetching latest changes..."
|
||||
git fetch --all --prune || { err "git fetch failed"; exit 1; }
|
||||
|
||||
log "Cleaning generated frontend artifacts..."
|
||||
git restore -- package-lock.json package.json 2>/dev/null || true
|
||||
git restore -- public/index.html 2>/dev/null || true
|
||||
git clean -fd -- dist public/assets || { err "cleanup failed"; exit 1; }
|
||||
|
||||
log "Pulling latest changes..."
|
||||
git pull --ff-only || { err "git pull failed"; exit 1; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user