Merge pull request #79 from overleaf/ho-mongo-connection-string

use MONGO_CONNECTION_STRING in settings.defaults.coffee if set
This commit is contained in:
Simon Detheridge 2019-08-08 14:16:49 +01:00 committed by GitHub
commit f49f5cbf05

View file

@ -88,7 +88,7 @@ module.exports =
dispatcherCount: process.env["DISPATCHER_COUNT"] dispatcherCount: process.env["DISPATCHER_COUNT"]
mongo: mongo:
url: "mongodb://#{process.env["MONGO_HOST"] or "localhost"}/sharelatex" url : process.env['MONGO_CONNECTION_STRING'] || "mongodb://#{process.env['MONGO_HOST'] or '127.0.0.1'}/sharelatex"
sentry: sentry:
dsn: process.env.SENTRY_DSN dsn: process.env.SENTRY_DSN