Skip to content

Commit dcda1a3

Browse files
committed
fix: added alternative memcached env variable for dokku configuration
1 parent d74e981 commit dcda1a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

brightIDfaucet/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ def str2bool(v):
6969
DEBUG = str2bool(os.environ.get("DEBUG"))
7070
DATABASE_URL = os.environ.get("DATABASE_URL")
7171
REDIS_URL = os.environ.get("REDIS_URL")
72-
MEMCACHED_URL = os.environ.get("MEMCACHEDCLOUD_SERVERS")
72+
MEMCACHED_URL = os.environ.get("MEMCACHED_URL") or os.environ.get(
73+
"MEMCACHEDCLOUD_SERVERS"
74+
)
75+
7376
MEMCACHED_USERNAME = os.environ.get("MEMCACHEDCLOUD_USERNAME")
7477
MEMCACHED_PASSWORD = os.environ.get("MEMCACHEDCLOUD_PASSWORD")
7578
DEPLOYMENT_ENV = os.environ.get("DEPLOYMENT_ENV")

0 commit comments

Comments
 (0)