1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

Set Redis host using cheat.sh config framework

https://github.com/chubin/cheat.sh/blob/f5d5fae71218e771e84b896600b2504c0d8814ec/lib/config.py
This commit is contained in:
Anatoli Babenia
2020-08-01 00:41:05 +03:00
parent ee273e2d51
commit 91320d921d
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -14,4 +14,4 @@ script:
- curl http://localhost:8002
- docker-compose logs --no-color
- docker logs chtsh
- REDIS_HOST=http://redis:6379 CHEATSH_TEST_STANDALONE=NO bash tests/run-tests.sh
- CHEATSH_TEST_STANDALONE=NO bash tests/run-tests.sh
+2
View File
@@ -6,6 +6,8 @@ services:
container_name: chtsh
depends_on:
- redis
environment:
- CHEATSH_REDIS_HOST=redis
ports:
- "8002:8002"
redis:
+2 -2
View File
@@ -2,10 +2,10 @@
# 1) start server:
# without caching:
# REDIS_HOST=None CHEATSH_PORT=50000 python bin/srv.py
# CHEATSH_REDIS_HOST=None CHEATSH_PORT=50000 python bin/srv.py
# (recommended)
# with caching:
# REDIS_PREFIX=TEST1 CHEATSH_PORT=50000 python bin/srv.py
# CHEATSH_REDIS_PREFIX=TEST1 CHEATSH_PORT=50000 python bin/srv.py
# (for complex search queries + to test caching)
# 2) configure CHTSH_URL
# 3) run the script