-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquickstart.sh
More file actions
executable file
·48 lines (40 loc) · 1.3 KB
/
quickstart.sh
File metadata and controls
executable file
·48 lines (40 loc) · 1.3 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
45
46
47
48
#!/bin/bash
# IntelliWeather - Quick Start Script
set -e
echo "🚀 IntelliWeather - Starting System..."
echo "======================================"
# Check Python version
python_version=$(python --version 2>&1)
echo "✓ $python_version"
# Check data directory
if [ ! -d "data" ]; then
echo "Creating data directory..."
mkdir -p data
fi
echo "✓ Data directory ready"
# Check environment file
if [ ! -f ".env" ]; then
echo "⚠️ No .env file found. Creating from template..."
cp .env.production .env
echo "✓ Created .env file - PLEASE CONFIGURE IT!"
fi
# Install dependencies (if needed)
if [ ! -d "venv" ] && [ ! -f "/.dockerenv" ]; then
echo "Installing Python dependencies..."
pip install -r requirements.txt > /dev/null 2>&1
echo "✓ Dependencies installed"
fi
# Start the application
echo ""
echo "🌟 Starting IntelliWeather API..."
echo "======================================"
echo "Access points:"
echo " - Main site: http://localhost:8000"
echo " - Dashboard: http://localhost:8000/static/dashboard.html"
echo " - API Docs: http://localhost:8000/docs"
echo " - Metrics: http://localhost:8000/metrics"
echo ""
echo "Press Ctrl+C to stop"
echo "======================================"
# Start uvicorn
python -m uvicorn app:app --host 0.0.0.0 --port 8000 --reload