mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Provide hosts as environment settings and add npm run start script
This commit is contained in:
parent
644f8834ef
commit
4ab7f7212d
2 changed files with 8 additions and 4 deletions
|
@ -4,15 +4,15 @@ module.exports = Settings =
|
|||
internal:
|
||||
spelling:
|
||||
port: 3005
|
||||
host: "localhost"
|
||||
host: process.env["LISTEN_ADDRESS"] or "localhost"
|
||||
|
||||
redis:
|
||||
port:6379
|
||||
host:"127.0.0.1"
|
||||
port: 6379
|
||||
host: process.env["REDIS_HOST"] or "localhost"
|
||||
password:""
|
||||
|
||||
mongo:
|
||||
url : 'mongodb://127.0.0.1/sharelatex'
|
||||
url : "mongodb://#{process.env["MONGO_HOST"] or "localhost"}/sharelatex"
|
||||
|
||||
cacheDir: Path.resolve "cache"
|
||||
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
"type": "git",
|
||||
"url": "https://github.com/sharelatex/spelling-sharelatex.git"
|
||||
},
|
||||
"scripts": {
|
||||
"compile:app": "coffee -o app/js -c app/coffee && coffee -c app.coffee",
|
||||
"start": "npm run compile:app && node app.js"
|
||||
},
|
||||
"version": "0.1.4",
|
||||
"dependencies": {
|
||||
"async": "0.1.22",
|
||||
|
|
Loading…
Reference in a new issue