瀏覽代碼

Use setting instead of hard-coding port

Alasdair Smith 8 年之前
父節點
當前提交
c128e0ab1c
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      services/document-updater/config/settings.defaults.coffee

+ 1 - 1
services/document-updater/config/settings.defaults.coffee

@@ -10,7 +10,7 @@ module.exports =
 
 	apis:
 		web:
-			url: "http://#{process.env["WEB_HOST"] or "localhost"}:3000"
+			url: "http://#{process.env["WEB_HOST"] or "localhost"}:#{process.env['WEB_PORT'] or 3000}"
 			user: "sharelatex"
 			pass: "password"
 		trackchanges: