Spaces:
Sleeping
Sleeping
minimal changes
Browse files
README.md
CHANGED
|
@@ -151,36 +151,12 @@ Follow the instructions below to set up the project locally or deploy it.
|
|
| 151 |
pip install -r requirements.txt
|
| 152 |
```
|
| 153 |
3. **Configure Environment:**
|
| 154 |
-
Create a `.env` file
|
| 155 |
-
```bash
|
| 156 |
-
cp .env.example .env
|
| 157 |
-
```
|
| 158 |
4. **Run the server:**
|
| 159 |
```bash
|
| 160 |
uvicorn app.main:app --reload --port 8000
|
| 161 |
```
|
| 162 |
|
| 163 |
-
### Deployment (Fly.io)
|
| 164 |
-
|
| 165 |
-
This application is configured for deployment on [Fly.io](https://fly.io/).
|
| 166 |
-
|
| 167 |
-
1. **Login to Fly:**
|
| 168 |
-
```bash
|
| 169 |
-
fly auth login
|
| 170 |
-
```
|
| 171 |
-
2. **Set Secrets:**
|
| 172 |
-
The application requires environment variables to be set as secrets on Fly.io.
|
| 173 |
-
```bash
|
| 174 |
-
fly secrets set CORS_ORIGINS="<your_frontend_url>"
|
| 175 |
-
fly secrets set REDIS_URL="<your_fly_redis_url>"
|
| 176 |
-
# Optional: for AI explanations
|
| 177 |
-
fly secrets set OLLAMA_HOST="<your_ollama_host>" OLLAMA_API_KEY="<your_key>"
|
| 178 |
-
```
|
| 179 |
-
3. **Deploy:**
|
| 180 |
-
```bash
|
| 181 |
-
fly deploy
|
| 182 |
-
```
|
| 183 |
-
|
| 184 |
|
| 185 |
| Variable | Required | Description | Example |
|
| 186 |
|----------|----------|-------------|---------|
|
|
|
|
| 151 |
pip install -r requirements.txt
|
| 152 |
```
|
| 153 |
3. **Configure Environment:**
|
| 154 |
+
Create a `.env` file.
|
|
|
|
|
|
|
|
|
|
| 155 |
4. **Run the server:**
|
| 156 |
```bash
|
| 157 |
uvicorn app.main:app --reload --port 8000
|
| 158 |
```
|
| 159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
|
| 161 |
| Variable | Required | Description | Example |
|
| 162 |
|----------|----------|-------------|---------|
|