-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstart.sh
More file actions
35 lines (28 loc) · 718 Bytes
/
start.sh
File metadata and controls
35 lines (28 loc) · 718 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
35
#!/bin/bash
echo ""
echo " Starting Sanctuary..."
echo ""
# Check .env exists
if [ ! -f ".env" ]; then
echo " ERROR: No .env file found!"
echo " Please run ./setup.sh first."
exit 1
fi
# Check venv exists
if [ ! -d "venv" ]; then
echo " ERROR: Virtual environment not found!"
echo " Please run ./setup.sh first."
exit 1
fi
# Activate and run
source venv/bin/activate
echo " Opening Sanctuary in your browser..."
# Open browser (works on macOS and Linux)
if command -v open &> /dev/null; then
open http://localhost:5000
elif command -v xdg-open &> /dev/null; then
xdg-open http://localhost:5000
else
echo " Open http://localhost:5000 in your browser"
fi
python3 app.py