Merge pull request #4 from prosolis/claude/fix-bot-online-issue-dWyHe
Claude/fix bot online issue d wy he
This commit is contained in:
14
README.md
14
README.md
@@ -30,22 +30,30 @@ cp .env.example .env
|
|||||||
|
|
||||||
Edit `.env` with your actual values (see [Environment Variables](#environment-variables) below).
|
Edit `.env` with your actual values (see [Environment Variables](#environment-variables) below).
|
||||||
|
|
||||||
### 2. Verify your configuration
|
### 2. Set up a virtual environment
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
python3 -m venv .venv
|
||||||
|
source .venv/bin/activate
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. Verify your configuration
|
||||||
|
|
||||||
|
```bash
|
||||||
python -m app --check
|
python -m app --check
|
||||||
```
|
```
|
||||||
|
|
||||||
This validates that all required environment variables are set, the Matrix homeserver is reachable, the bot token is valid, the bot has joined the announcements room, and the database path is writable. Fix any failing checks before starting the server.
|
This validates that all required environment variables are set, the Matrix homeserver is reachable, the bot token is valid, the bot has joined the announcements room, and the database path is writable. Fix any failing checks before starting the server.
|
||||||
|
|
||||||
### 3. Run locally
|
### 4. Run locally
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
source .venv/bin/activate
|
||||||
uvicorn app.main:app --host 0.0.0.0 --port 8000
|
uvicorn app.main:app --host 0.0.0.0 --port 8000
|
||||||
```
|
```
|
||||||
|
|
||||||
### 4. Run with Docker
|
### 5. Run with Docker
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker build -t melora .
|
docker build -t melora .
|
||||||
|
|||||||
Reference in New Issue
Block a user