diff --git a/services/real-time/config/settings.defaults.coffee b/services/real-time/config/settings.defaults.coffee index d939dd55a8..e3464aa26a 100644 --- a/services/real-time/config/settings.defaults.coffee +++ b/services/real-time/config/settings.defaults.coffee @@ -1,7 +1,7 @@ module.exports = redis: realtime: - host: "localhost" + host: process.env['REDIS_HOST'] or "localhost" port: "6379" password: "" key_schema: @@ -9,35 +9,35 @@ module.exports = connectedUser: ({project_id, client_id})-> "connected_user:#{project_id}:#{client_id}" documentupdater: - host: "localhost" + host: process.env['REDIS_HOST'] or "localhost" port: "6379" password: "" key_schema: pendingUpdates: ({doc_id}) -> "PendingUpdates:#{doc_id}" websessions: - host: "localhost" + host: process.env['REDIS_HOST'] or "localhost" port: "6379" password: "" internal: realTime: port: 3026 - host: "localhost" + host: process.env['LISTEN_ADDRESS'] or "localhost" user: "sharelatex" pass: "password" apis: web: - url: "http://localhost:3000" + url: "http://#{process.env['WEB_HOST'] or "localhost"}:3000" user: "sharelatex" pass: "password" documentupdater: - url: "http://localhost:3003" + url: "http://#{process.env['DOCUPDATER_HOST'] or "localhost"}:3003" security: sessionSecret: "secret-please-change" - cookieName:"sharelatex.sid" + cookieName: "sharelatex.sid" max_doc_length: 2 * 1024 * 1024 # 2mb \ No newline at end of file diff --git a/services/real-time/package.json b/services/real-time/package.json index 8cfb35291a..fe057f7bda 100644 --- a/services/real-time/package.json +++ b/services/real-time/package.json @@ -7,6 +7,10 @@ "type": "git", "url": "https://github.com/sharelatex/real-time-sharelatex.git" }, + "scripts": { + "compile:app": "coffee -o app/js -c app/coffee && coffee -c app.coffee", + "start": "npm run compile:app && node app.js" + }, "dependencies": { "async": "^0.9.0", "basic-auth-connect": "^1.0.0",