瀏覽代碼

Merge pull request #1010 from sharelatex/as-fix-no-sl

Switch dev env to use v2 port instead of SL
Alasdair Smith 8 年之前
父節點
當前提交
250edf4670
共有 1 個文件被更改,包括 2 次插入 和 2 次删除
  1. 2 2
      services/web/config/settings.defaults.coffee

+ 2 - 2
services/web/config/settings.defaults.coffee

@@ -91,7 +91,7 @@ module.exports = settings =
 	# running which conflict, or want to run the web process on port 80.
 	internal:
 		web:
-			port: webPort = 3000
+			port: webPort = process.env['WEB_PORT'] or 3000
 			host: process.env['LISTEN_ADDRESS'] or 'localhost'
 		documentupdater:
 			port: docUpdaterPort = 3003
@@ -192,7 +192,7 @@ module.exports = settings =
 	#clsiCookieKey: "clsiserver"
 
 	# Same, but with http auth credentials.
-	httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@localhost:3000'
+	httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@#{siteUrl}'
 
 
 	maxEntitiesPerProject: 2000