From ff8afb6c24af3fcbe4835de78eaf651b71325da7 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 3 Oct 2018 15:01:31 +0100 Subject: [PATCH] pass redis port --- services/real-time/app.coffee | 2 -- services/real-time/config/settings.defaults.coffee | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/services/real-time/app.coffee b/services/real-time/app.coffee index 91e427f3aa..824cdce5db 100644 --- a/services/real-time/app.coffee +++ b/services/real-time/app.coffee @@ -8,8 +8,6 @@ Settings = require "settings-sharelatex" if Settings.sentry?.dsn? logger.initializeErrorReporting(Settings.sentry.dsn) -console.log "dasdsadasdsadsadsadsad" -console.log Settings.redis.websessions sessionRedisClient = redis.createClient(Settings.redis.websessions) RedisStore = require('connect-redis')(session) diff --git a/services/real-time/config/settings.defaults.coffee b/services/real-time/config/settings.defaults.coffee index f8e76261a6..152a6f058b 100644 --- a/services/real-time/config/settings.defaults.coffee +++ b/services/real-time/config/settings.defaults.coffee @@ -2,7 +2,7 @@ module.exports = redis: realtime: host: process.env['REDIS_HOST'] or "localhostssss" - port: "6379" + port: process.env['REDIS_PORT'] or "6379" password: process.env["REDIS_PASSWORD"] or "" key_schema: clientsInProject: ({project_id}) -> "clients_in_project:#{project_id}" @@ -10,14 +10,14 @@ module.exports = documentupdater: host: process.env['REDIS_HOST'] or "localhostssss" - port: "6379" + port: process.env['REDIS_PORT'] or "6379" password: process.env["REDIS_PASSWORD"] or "" key_schema: pendingUpdates: ({doc_id}) -> "PendingUpdates:#{doc_id}" websessions: host: process.env['REDIS_HOST'] or "localhostssss" - port: "6379" + port: process.env['REDIS_PORT'] or "6379" password: process.env["REDIS_PASSWORD"] or "" internal: