Răsfoiți Sursa

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

Switch dev env to use v2 port instead of SL
Alasdair Smith 8 ani în urmă
părinte
comite
250edf4670
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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.
 	# running which conflict, or want to run the web process on port 80.
 	internal:
 	internal:
 		web:
 		web:
-			port: webPort = 3000
+			port: webPort = process.env['WEB_PORT'] or 3000
 			host: process.env['LISTEN_ADDRESS'] or 'localhost'
 			host: process.env['LISTEN_ADDRESS'] or 'localhost'
 		documentupdater:
 		documentupdater:
 			port: docUpdaterPort = 3003
 			port: docUpdaterPort = 3003
@@ -192,7 +192,7 @@ module.exports = settings =
 	#clsiCookieKey: "clsiserver"
 	#clsiCookieKey: "clsiserver"
 
 
 	# Same, but with http auth credentials.
 	# Same, but with http auth credentials.
-	httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@localhost:3000'
+	httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@#{siteUrl}'
 
 
 
 
 	maxEntitiesPerProject: 2000
 	maxEntitiesPerProject: 2000