feat(config): use REDIS_URL for redis

This commit is contained in:
tiennm99 committed 2026-06-22 09:19:25 +07:00
1 parent f022e8463c
commit 204a76a32d
8 files changed
+82 -50

No files matched your search

+3 -1
View File
@@ -11,6 +11,7 @@
```bash
cp .env.example .env
# set TELEGRAM_BOT_TOKEN in .env
# REDIS_URL is overridden to redis://redis:6379/0 by docker compose
docker compose up --build
```
@@ -27,6 +28,7 @@ Run bot:
```bash
cp .env.example .env
# export TELEGRAM_BOT_TOKEN or source .env with your shell workflow
# REDIS_URL defaults to redis://localhost:6379/0
go run ./cmd/openai-status-bot
```
@@ -34,7 +36,7 @@ go run ./cmd/openai-status-bot
```bash
go test ./...
go build ./cmd/openai-status-bot
go build -o /tmp/openai-status-bot ./cmd/openai-status-bot
```
Then send `/start` to the Telegram bot and run `/status`. If the same token was previously used by a webhook deployment, startup clears that webhook before long polling begins.