#!/bin/bash # Deploy Backend Only # Use this when you've only made backend changes set -e echo "🔧 Deploying Backend Only..." cd /home/luckychit/apps/chitfund # Pull latest code echo "📥 Pulling latest code..." git stash 2>/dev/null || true git pull origin prodnew # Backend cd backend echo "📦 Installing dependencies..." npm install echo "♻️ Restarting backend..." pm2 reload luckychit-api echo "✅ Backend deployed!" pm2 status pm2 logs luckychit-api --lines 20 --nostream