set redis port via env var

This commit is contained in:
Henry Oswald 2018-09-28 17:04:25 +01:00
parent 93cf574251
commit ff673c71d5

View file

@ -21,7 +21,7 @@ module.exports =
redis: redis:
realtime: realtime:
port: "6379" port: process.env["REDIS_PORT"] or "6379"
host: process.env["REDIS_HOST"] or "localhost" host: process.env["REDIS_HOST"] or "localhost"
password: process.env["REDIS_PASSWORD"] password: process.env["REDIS_PASSWORD"]
key_schema: key_schema:
@ -33,7 +33,7 @@ module.exports =
# key_schema: # key_schema:
# pendingUpdates: ({doc_id}) -> "PendingUpdates:{#{doc_id}}" # pendingUpdates: ({doc_id}) -> "PendingUpdates:{#{doc_id}}"
documentupdater: documentupdater:
port: "6379" port: process.env["REDIS_PORT"] or "6379"
host: process.env["REDIS_HOST"] or "localhost" host: process.env["REDIS_HOST"] or "localhost"
password: process.env["REDIS_PASSWORD"] password: process.env["REDIS_PASSWORD"]
key_schema: key_schema:
@ -64,7 +64,7 @@ module.exports =
# ranges: ({doc_id}) -> "Ranges:{#{doc_id}}" # ranges: ({doc_id}) -> "Ranges:{#{doc_id}}"
# projectState: ({project_id}) -> "ProjectState:{#{project_id}}" # projectState: ({project_id}) -> "ProjectState:{#{project_id}}"
history: history:
port: "6379" port: process.env["REDIS_PORT"] or "6379"
host: process.env["REDIS_HOST"] or "localhost" host: process.env["REDIS_HOST"] or "localhost"
password: process.env["REDIS_PASSWORD"] password: process.env["REDIS_PASSWORD"]
key_schema: key_schema:
@ -82,7 +82,7 @@ module.exports =
# uncompressedHistoryOps: ({doc_id}) -> "UncompressedHistoryOps:{#{doc_id}}" # uncompressedHistoryOps: ({doc_id}) -> "UncompressedHistoryOps:{#{doc_id}}"
# docsWithHistoryOps: ({project_id}) -> "DocsWithHistoryOps:{#{project_id}}" # docsWithHistoryOps: ({project_id}) -> "DocsWithHistoryOps:{#{project_id}}"
lock: lock:
port: "6379" port: process.env["REDIS_PORT"] or "6379"
host: process.env["REDIS_HOST"] or "localhost" host: process.env["REDIS_HOST"] or "localhost"
password: process.env["REDIS_PASSWORD"] password: process.env["REDIS_PASSWORD"]
key_schema: key_schema: