-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·40 lines (34 loc) · 833 Bytes
/
Copy pathstart.sh
File metadata and controls
executable file
·40 lines (34 loc) · 833 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
36
37
38
39
40
#!/bin/bash
# Texel Studio — one-command setup & start
set -e
cd "$(dirname "$0")"
# Python venv
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
python3 -m venv venv
fi
source venv/bin/activate
# Python dependencies
echo "Installing Python dependencies..."
pip install -q -r requirements.txt
# .env
if [ ! -f ".env" ]; then
cp .env.example .env
echo ""
echo "Created .env from .env.example"
echo "Edit .env with your API keys before generating."
echo ""
fi
# Frontend build
if [ ! -d "static/_next" ] || [ "frontend/src" -nt "static/index.html" ] 2>/dev/null; then
echo "Building frontend..."
cd frontend
npm install --silent
npm run build 2>/dev/null
cd ..
fi
echo ""
echo "Starting Texel Studio..."
echo "Open http://localhost:8500"
echo ""
python3 server.py