forked from muratcankoylan/actual_code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_web_ui.sh
More file actions
executable file
·44 lines (36 loc) · 1.59 KB
/
Copy pathstart_web_ui.sh
File metadata and controls
executable file
·44 lines (36 loc) · 1.59 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
#!/bin/bash
# ActualCode Web UI Startup Script
echo "╔═══════════════════════════════════════════════════════════════════╗"
echo "║ ActualCode Web UI ║"
echo "║ AI-Powered Assessment Generator ║"
echo "╚═══════════════════════════════════════════════════════════════════╝"
echo ""
# Check if virtual environment is activated
if [[ -z "$VIRTUAL_ENV" ]]; then
echo "⚠️ Virtual environment not detected. Activating venv..."
if [ -f "venv/bin/activate" ]; then
source venv/bin/activate
echo "✅ Virtual environment activated"
else
echo "❌ Virtual environment not found. Please run: python3 -m venv venv"
exit 1
fi
fi
# Check environment variables
if [[ -z "$GITHUB_TOKEN" ]] && [[ -z "$GITHUB_PERSONAL_ACCESS_TOKEN" ]]; then
echo "❌ GitHub token not found!"
echo "Please set GITHUB_TOKEN environment variable:"
echo " export GITHUB_TOKEN='your_token_here'"
exit 1
fi
echo "✅ GitHub token configured"
if [[ -z "$GOOGLE_CLOUD_PROJECT" ]]; then
echo "⚠️ GOOGLE_CLOUD_PROJECT not set (using defaults)"
else
echo "✅ Google Cloud project: $GOOGLE_CLOUD_PROJECT"
fi
echo ""
echo "🚀 Starting ActualCode Web Server..."
echo ""
# Start the web server
python3 web_server.py