forked from naman-ranka/HEAL_AI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
34 lines (28 loc) · 961 Bytes
/
deploy.sh
File metadata and controls
34 lines (28 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# HEAL.AI Easy Deployment Script
echo "🚀 HEAL.AI Deployment Script"
echo "=============================="
# Check if we're in the right directory
if [ ! -f "README.md" ] || [ ! -d "backend" ] || [ ! -d "frontend" ]; then
echo "❌ Please run this script from the HEAL project root directory"
exit 1
fi
echo "📦 Building frontend..."
cd frontend-clean
npm install
npm run build
cd ..
echo "📁 Copying frontend build to backend static folder..."
rm -rf backend/static
cp -r frontend-clean/dist backend/static
echo "🐳 Building Docker image..."
docker build -t heal-ai .
echo "✅ Build complete!"
echo ""
echo "🚀 Deployment Options:"
echo "1. Local Docker: docker run -p 8000:8000 -e GEMINI_API_KEY=your_key heal-ai"
echo "2. Railway: railway up"
echo "3. Render: git push (if connected to Render)"
echo "4. Docker Compose: docker-compose up"
echo ""
echo "📝 Don't forget to set your GEMINI_API_KEY environment variable!"