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:
+1
-1
@@ -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
|
||||
|
||||
@@ -6,6 +6,8 @@ services:
|
||||
container_name: chtsh
|
||||
depends_on:
|
||||
- redis
|
||||
environment:
|
||||
- CHEATSH_REDIS_HOST=redis
|
||||
ports:
|
||||
- "8002:8002"
|
||||
redis:
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user