-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstart-dev.sh
More file actions
30 lines (24 loc) Β· 873 Bytes
/
Copy pathstart-dev.sh
File metadata and controls
30 lines (24 loc) Β· 873 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
#!/bin/bash
# Agent Assistant Web Development Server Startup Script
echo "π Starting Agent Assistant Web Development Server..."
echo ""
# Check if node_modules exists
if [ ! -d "node_modules" ]; then
echo "π¦ Installing dependencies..."
pnpm install
echo ""
fi
# Check if dependencies are installed
if [ ! -f "node_modules/.pnpm/lock.yaml" ] && [ ! -f "pnpm-lock.yaml" ]; then
echo "β Dependencies not properly installed. Please run 'pnpm install' manually."
exit 1
fi
echo "π Starting development server..."
echo "π Server will be available at: http://localhost:9000"
echo "π Access with token: http://localhost:9000?token=your-token"
echo ""
echo "π‘ Make sure agentassistant-srv is running on the same host"
echo "β‘ Press Ctrl+C to stop the server"
echo ""
# Start the development server
pnpm dev --host 0.0.0.0 --port 9000