forked from tambo-ai/tambo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconductor-run.sh
More file actions
executable file
·77 lines (74 loc) · 2.26 KB
/
conductor-run.sh
File metadata and controls
executable file
·77 lines (74 loc) · 2.26 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/bash
set -e
# Function to start Supabase if needed
start_supabase_if_needed() {
if command -v supabase &> /dev/null; then
echo "🗄️ Checking Supabase status..."
# Use timeout to prevent hanging if Docker isn't running
if ! timeout 10 supabase status &> /dev/null; then
echo "🗄️ Starting Supabase..."
if ! supabase start; then
echo "❌ Failed to start Supabase. Common issues:"
echo " - Docker not running (start Docker Desktop)"
echo " - supabase not initialized (run 'supabase init')"
echo " - Port conflicts (check if ports 54322-54328 are available)"
exit 1
fi
else
echo "✓ Supabase already running"
fi
else
echo "⚠️ WARNING: Supabase CLI not installed. Install with: brew install supabase/tap/supabase"
echo "⚠️ You'll need to manually set up your database or install Supabase CLI"
fi
}
echo "🚀 Tambo Development Server Options"
echo ""
echo "Select what to run:"
echo " 1) Full dev (everything - showcase + docs + web + api)"
echo " 2) Framework only (showcase + docs)"
echo " 3) Cloud only (web + api)"
echo " 4) Showcase only"
echo " 5) Docs only"
echo " 6) Web only"
echo " 7) API only"
echo ""
read -p "Enter your choice (1-7): " choice
case $choice in
1)
echo "Starting full dev (everything)..."
start_supabase_if_needed
npx turbo dev --filter=@tambo-ai/showcase --filter=@tambo-ai/docs --filter=@tambo-ai-cloud/web --filter=@tambo-ai-cloud/api
;;
2)
echo "Starting framework only (showcase + docs)..."
npx turbo dev --filter=@tambo-ai/showcase --filter=@tambo-ai/docs
;;
3)
echo "Starting cloud only (web + api)..."
start_supabase_if_needed
npx turbo dev --filter=@tambo-ai-cloud/web --filter=@tambo-ai-cloud/api
;;
4)
echo "Starting showcase only..."
npx turbo dev --filter=@tambo-ai/showcase
;;
5)
echo "Starting docs only..."
npx turbo dev --filter=@tambo-ai/docs
;;
6)
echo "Starting web only..."
start_supabase_if_needed
npx turbo dev --filter=@tambo-ai-cloud/web
;;
7)
echo "Starting API only..."
start_supabase_if_needed
npx turbo dev --filter=@tambo-ai-cloud/api
;;
*)
echo "Invalid choice. Exiting."
exit 1
;;
esac