-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
34 lines (27 loc) · 747 Bytes
/
Copy pathdeploy.sh
File metadata and controls
34 lines (27 loc) · 747 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
set -e
echo "Starting deployment..."
# Build and start containers
docker-compose down || true
docker-compose build --no-cache
docker-compose up -d
# Wait for services to be ready
echo "Waiting for services to start..."
sleep 10
# Run health checks
if curl -sf http://localhost:3000/health > /dev/null; then
echo "✓ Backend is healthy"
else
echo "✗ Backend health check failed"
exit 1
fi
if curl -sf http://localhost:80 > /dev/null; then
echo "✓ Frontend is healthy"
else
echo "✗ Frontend health check failed"
exit 1
fi
echo "Deployment completed successfully!"
echo "Frontend: http://localhost"
echo "Backend API: http://localhost:3000"
echo "API Docs: http://localhost:3000/api/github/trending"