-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
Β·37 lines (32 loc) Β· 1.11 KB
/
deploy.sh
File metadata and controls
executable file
Β·37 lines (32 loc) Β· 1.11 KB
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
35
36
37
#!/bin/bash
echo "π Claude Code Dashboard Deployment"
echo "=================================="
# Check if Docker is installed
if ! command -v docker &> /dev/null; then
echo "β Docker is not installed. Please install Docker first."
exit 1
fi
# Check if docker compose is installed (v2 or v1)
if command -v docker compose &> /dev/null; then
DOCKER_COMPOSE="docker compose"
elif command -v docker-compose &> /dev/null; then
DOCKER_COMPOSE="docker-compose"
else
echo "β Docker Compose is not installed. Please install Docker Compose first."
exit 1
fi
# Build and start the dashboard
echo "π¨ Building and starting the dashboard..."
$DOCKER_COMPOSE up -d --build
if [ $? -eq 0 ]; then
echo "β
Dashboard deployed successfully!"
echo "π Access your dashboard at: http://localhost:3300"
echo ""
echo "π‘ Useful commands:"
echo " - View logs: $DOCKER_COMPOSE logs -f"
echo " - Stop dashboard: $DOCKER_COMPOSE down"
echo " - Restart dashboard: $DOCKER_COMPOSE restart"
else
echo "β Deployment failed. Check the logs with: $DOCKER_COMPOSE logs"
exit 1
fi