Provide hosts as environment settings and add npm run start script

This commit is contained in:
James Allen 2017-12-29 08:14:23 +00:00
parent a70a216c52
commit b834e53e13
2 changed files with 5 additions and 1 deletions

View file

@ -4,7 +4,7 @@ module.exports =
internal:
filestore:
port: 3009
host: "localhost"
host: process.env['LISTEN_ADDRESS'] or "localhost"
filestore:
# Which backend persistor to use.

View file

@ -6,6 +6,10 @@
"type": "git",
"url": "https://github.com/sharelatex/filestore-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.10",
"aws-sdk": "^2.1.39",