Provide hosts as environment settings and add npm run start script

This commit is contained in:
James Allen 2017-12-29 08:11:53 +00:00
parent 6518213ca5
commit f4f4545e04
2 changed files with 6 additions and 2 deletions

View file

@ -5,7 +5,7 @@ module.exports =
internal: internal:
contacts: contacts:
port: 3036 port: 3036
host: "localhost" host: process.env["LISTEN_ADDRESS"] or "localhost"
mongo: mongo:
url: 'mongodb://127.0.0.1/sharelatex' url: "mongodb://#{process.env["MONGO_HOST"] or "localhost"}/sharelatex"

View file

@ -7,6 +7,10 @@
"type": "git", "type": "git",
"url": "https://github.com/sharelatex/contacts-sharelatex.git" "url": "https://github.com/sharelatex/contacts-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": { "dependencies": {
"settings-sharelatex": "git+https://github.com/sharelatex/settings-sharelatex.git#v1.0.0", "settings-sharelatex": "git+https://github.com/sharelatex/settings-sharelatex.git#v1.0.0",
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#v1.1.0", "logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#v1.1.0",