mirror of
https://github.com/Rainyy21/URL_shortener.git
synced 2026-10-10 23:50:14 -04:00
added docker and modify the file so it work
This commit is contained in:
Vendored
Vendored
+5
-1
@@ -1,3 +1,7 @@
|
||||
import redis
|
||||
import os
|
||||
|
||||
redis_client = redis.Redis(host="localhost", port=6379, decode_responses=True)
|
||||
redis_host = os.getenv("REDIS_HOST", "localhost")
|
||||
redis_port = int(os.getenv("REDIS_PORT", 6379))
|
||||
|
||||
redis_client = redis.Redis(host=redis_host, port=redis_port, decode_responses=True)
|
||||
|
||||
Reference in New Issue
Block a user