diff options
Diffstat (limited to 'go/index.js')
-rw-r--r-- | go/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/go/index.js b/go/index.js index 44ff79b5..7f1e6a07 100644 --- a/go/index.js +++ b/go/index.js @@ -2,7 +2,7 @@ var hostname = process.env.HOSTN; var httpPort = process.env.PORT; var uriPrefix = process.env.URI_PREFIX; -var redisPrefix = 'go:'; +var redisPrefix = process.env.REDIS_KEY_PREFIX; // automatic configuration @@ -18,6 +18,9 @@ if (!uriPrefix) { } } } +if (!redisPrefix) { + redisPrefix = 'go:'; +} // load libraries |