Add backend directory creation to deploy script

Creates uploads/ and temp/ directories with correct ownership
before restarting the service, fixing systemd namespace errors.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
michael 2025-12-09 11:43:03 -06:00
parent 947acf780b
commit a6e1a8a307

View file

@ -50,9 +50,16 @@ rm -rf "$FRONTEND_DEST"/*
echo "Copying new build..."
cp -r dist/* "$FRONTEND_DEST/"
# Step 6: Restart backend service
# Step 6: Create backend directories
echo ""
echo "[6/6] Restarting backend service..."
echo "[6/7] Creating backend directories..."
mkdir -p "$DEPLOY_DIR/backend/uploads"
mkdir -p "$DEPLOY_DIR/backend/temp"
sudo chown -R www-data:www-data "$DEPLOY_DIR/backend/uploads" "$DEPLOY_DIR/backend/temp"
# Step 7: Restart backend service
echo ""
echo "[7/7] Restarting backend service..."
sudo systemctl restart semblance.service
echo ""