Provide hosts as environment settings and add npm run start script

This commit is contained in:
James Allen 2017-12-29 08:16:04 +00:00
parent 644f8834ef
commit 4ab7f7212d
2 changed files with 8 additions and 4 deletions

View file

@ -4,15 +4,15 @@ module.exports = Settings =
internal: internal:
spelling: spelling:
port: 3005 port: 3005
host: "localhost" host: process.env["LISTEN_ADDRESS"] or "localhost"
redis: redis:
port:6379 port: 6379
host:"127.0.0.1" host: process.env["REDIS_HOST"] or "localhost"
password:"" password:""
mongo: mongo:
url : 'mongodb://127.0.0.1/sharelatex' url : "mongodb://#{process.env["MONGO_HOST"] or "localhost"}/sharelatex"
cacheDir: Path.resolve "cache" cacheDir: Path.resolve "cache"

View file

@ -6,6 +6,10 @@
"type": "git", "type": "git",
"url": "https://github.com/sharelatex/spelling-sharelatex.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", "version": "0.1.4",
"dependencies": { "dependencies": {
"async": "0.1.22", "async": "0.1.22",