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
de8ea64c29
commit
3cb643ddeb
1 changed files with 8 additions and 1 deletions
|
|
@ -157,7 +157,14 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for uncommitted changes (excluding cache version files)
|
# 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
|
if [ ! -z "$UNCOMMITTED" ]; then
|
||||||
echo -e "${YELLOW} ⚠ WARNING: Uncommitted changes detected:${NC}"
|
echo -e "${YELLOW} ⚠ WARNING: Uncommitted changes detected:${NC}"
|
||||||
echo "$UNCOMMITTED" | sed 's/^/ /'
|
echo "$UNCOMMITTED" | sed 's/^/ /'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue