forked from External/greenlight
GRN-93: Fix for issue with excesive requests to LB (#447)
* Fix for issue with excesive requests to lb * Fixed issue with rspec on users not passing when run alone * Include dotenv in production
This commit is contained in:
@ -111,7 +111,7 @@ class ApplicationController < ActionController::Base
|
||||
@user_domain = if Rails.env.test? || !Rails.configuration.loadbalanced_configuration
|
||||
"greenlight"
|
||||
else
|
||||
parse_user_domain(request.env["SERVER_NAME"])
|
||||
parse_user_domain(request.host)
|
||||
end
|
||||
end
|
||||
helper_method :set_user_domain
|
||||
|
Reference in New Issue
Block a user