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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
Quick start script for local development.
```bash
./deployment/scripts/start.sh
```
**What it does:**
- --
Environment setup script.
```bash
./deployment/scripts/setup.sh
```
**What it does:**
- --
Docker container startup script.
```bash
./deployment/scripts/docker-start.sh
```
**What it does:**
- --
Production database initialization.
```bash
psql -f deployment/scripts/init-db.sql
```
Development database setup.
```bash
psql -f deployment/scripts/init-dev-db.sql
```
API testing script.
```bash
./deployment/scripts/test_api.sh
```
**What it does:**
- --
```bash
export GATEWAY_HOST=0.0.0.0
export GATEWAY_PORT=8000
export DATABASE_URL=postgresql://...
```
```bash
export CONFIG_PATH=custom/config.yaml
export LOG_PATH=custom/logs/
```
```bash
./deployment/scripts/setup.sh
./deployment/scripts/start.sh
./deployment/scripts/test_api.sh
```
```bash
sudo ./deployment/scripts/setup.sh --production
sudo cp ../systemd/litellm-rs.service /etc/systemd/system/
sudo systemctl enable litellm-rs
sudo systemctl start litellm-rs
```