Procházet zdrojové kódy

Provide hosts as environment settings and add npm run start script

James Allen před 8 roky
rodič
revize
b834e53e13

+ 1 - 1
services/filestore/config/settings.defaults.coffee

@@ -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.

+ 4 - 0
services/filestore/package.json

@@ -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",