Merge pull request #4 from sharelatex/ja-dockerize-dev

Provide hosts as environment settings and add npm run start script
This commit is contained in:
James Allen 2018-01-16 17:08:16 +00:00 committed by GitHub
commit 274616780a
2 changed files with 13 additions and 8 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,16 +7,21 @@
"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", "async": "~0.8.0",
"body-parser": "~1.0.2",
"coffee-script": "^1.7.1",
"express": "~4.1.1",
"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",
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.7.1", "metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.7.1",
"mongojs": "0.18.2", "mongojs": "0.18.2",
"express": "~4.1.1", "request": "~2.34.0",
"underscore": "~1.6.0", "settings-sharelatex": "git+https://github.com/sharelatex/settings-sharelatex.git#v1.0.0",
"body-parser": "~1.0.2", "underscore": "~1.6.0"
"async": "~0.8.0",
"request": "~2.34.0"
}, },
"devDependencies": { "devDependencies": {
"bunyan": "~0.22.3", "bunyan": "~0.22.3",