-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·34 lines (25 loc) · 862 Bytes
/
start.sh
File metadata and controls
executable file
·34 lines (25 loc) · 862 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
# start.sh - Start HeyIm services (backend + frontend)
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$SCRIPT_DIR"
echo "🚀 Starting HeyIm services..."
# Start backend
echo "▶️ Starting backend..."
sudo launchctl load -w /Library/LaunchDaemons/com.heyim.backend.plist 2>/dev/null || \
sudo launchctl start com.heyim.backend
sleep 2
# Start frontend
echo "▶️ Starting frontend..."
sudo launchctl load -w /Library/LaunchDaemons/com.heyim.frontend.plist 2>/dev/null || \
sudo launchctl start com.heyim.frontend
sleep 3
# Check status
echo ""
echo "📊 Service Status:"
"$PROJECT_ROOT/status.sh" || true
echo ""
echo "✅ HeyIm started successfully!"
echo "🌐 Frontend: http://localhost:5859"
echo "🔧 Backend API: http://localhost:5858"
echo "🌍 Production: https://heyim.truyenthong.edu.vn"