fix(deployment): frontend-only mode now only checks public/ for uncommitted changes
- Frontend-only deployments no longer blocked by .claude/ session files - Full deployments still check all files for uncommitted changes - Allows deploying public/ changes without committing backend session state 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
fcf4a10370
commit
fce44f3e48
1 changed files with 8 additions and 1 deletions
|
|
@ -157,7 +157,14 @@ else
|
|||
fi
|
||||
|
||||
# Check for uncommitted changes (excluding cache version files)
|
||||
UNCOMMITTED=$(git status --porcelain | grep -v "public/.*\.html" | grep -v "public/service-worker.js" | grep -v "public/version.json" || true)
|
||||
if [ "$FRONTEND_ONLY" = true ]; then
|
||||
# Frontend-only: only check public/ directory for uncommitted changes
|
||||
UNCOMMITTED=$(git status --porcelain public/ | grep -v "public/.*\.html" | grep -v "public/service-worker.js" | grep -v "public/version.json" || true)
|
||||
else
|
||||
# Full deployment: check all files
|
||||
UNCOMMITTED=$(git status --porcelain | grep -v "public/.*\.html" | grep -v "public/service-worker.js" | grep -v "public/version.json" || true)
|
||||
fi
|
||||
|
||||
if [ ! -z "$UNCOMMITTED" ]; then
|
||||
echo -e "${YELLOW} ⚠ WARNING: Uncommitted changes detected:${NC}"
|
||||
echo "$UNCOMMITTED" | sed 's/^/ /'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue