From c7ab5042fef55b71baf6bb637cb6033b25007845 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 6 Jan 2014 01:42:04 +0100 Subject: go: talk about the redis key prefix --- go/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'go/index.js') 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 -- cgit v1.2.3