mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
Merge pull request #47 from sharelatex/ja-dockerize-dev
Provide hosts as environment settings and add npm run start script
This commit is contained in:
commit
c420916c17
2 changed files with 12 additions and 8 deletions
|
@ -3,23 +3,23 @@ TMP_DIR = Path.resolve(Path.join(__dirname, "../../", "tmp"))
|
|||
|
||||
module.exports =
|
||||
mongo:
|
||||
url: 'mongodb://127.0.0.1/sharelatex'
|
||||
url: "mongodb://#{process.env["MONGO_HOST"] or "localhost"}/sharelatex"
|
||||
internal:
|
||||
trackchanges:
|
||||
port: 3015
|
||||
host: "localhost"
|
||||
host: process.env["LISTEN_ADDRESS"] or "localhost"
|
||||
apis:
|
||||
documentupdater:
|
||||
url: "http://localhost:3003"
|
||||
url: "http://#{process.env["DOCUPDATER_HOST"] or "localhost"}:3003"
|
||||
docstore:
|
||||
url: "http://localhost:3016"
|
||||
url: "http://#{process.env["DOCSTORE_HOST"] or "localhost"}:3016"
|
||||
web:
|
||||
url: "http://localhost:3000"
|
||||
url: "http://#{process.env["WEB_HOST"] or "localhost"}:3000"
|
||||
user: "sharelatex"
|
||||
pass: "password"
|
||||
redis:
|
||||
lock:
|
||||
host: "localhost"
|
||||
host: process.env["REDIS_HOST"] or "localhost"
|
||||
port: 6379
|
||||
pass: ""
|
||||
key_schema:
|
||||
|
@ -27,7 +27,7 @@ module.exports =
|
|||
historyIndexLock: ({project_id}) -> "HistoryIndexLock:#{project_id}"
|
||||
history:
|
||||
port: "6379"
|
||||
host:"localhost"
|
||||
host: process.env["REDIS_HOST"] or "localhost"
|
||||
password:""
|
||||
key_schema:
|
||||
uncompressedHistoryOps: ({doc_id}) -> "UncompressedHistoryOps:#{doc_id}"
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
"type": "git",
|
||||
"url": "https://github.com/sharelatex/track-changes-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": {
|
||||
"JSONStream": "^1.0.4",
|
||||
"async": "~0.2.10",
|
||||
|
|
Loading…
Reference in a new issue