Provide host as settings and add npm run start script

This commit is contained in:
James Allen 2017-12-29 08:05:03 +00:00
parent d9793a9431
commit 0567664c77
2 changed files with 8 additions and 4 deletions

View file

@ -1,20 +1,20 @@
module.exports =
internal:
chat:
host: "localhost"
host: process.env['LISTEN_ADDRESS'] or "localhost"
port: 3010
apis:
web:
url: "http://localhost:3000"
url: "http://#{process.env['WEB_HOST'] || "localhost"}:3000"
user: "sharelatex"
pass: "password"
mongo:
url : 'mongodb://127.0.0.1/sharelatex'
url : "mongodb://#{process.env['MONGO_HOST'] || "localhost"}/sharelatex"
redis:
web:
host: "localhost"
host: process.env['REDIS_HOST'] || "localhost"
port: "6379"
password: ""

View file

@ -6,6 +6,10 @@
"type": "git",
"url": "https://github.com/sharelatex/chat-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": {
"async": "0.2.9",
"coffee-script": "~1.7.1",