subdomain + domain
This commit is contained in:
@@ -22,9 +22,12 @@ class ApplicationController < ActionController::Base
|
||||
{ locale: I18n.locale }
|
||||
end
|
||||
|
||||
def lookup_domain
|
||||
if request.subdomain.present? && request.subdomain != "www"
|
||||
@license = cache_license(ENV["SX_PROVISION_URL"], request.subdomain.downcase) # request.subdomain.downcase
|
||||
def lookup_domain
|
||||
|
||||
if request.subdomain.present? && request.subdomain != "www"
|
||||
from = request.subdomain.downcase #+ "." + request.domain.downcase
|
||||
puts from
|
||||
@license = cache_license(ENV["SX_PROVISION_URL"], from) # request.subdomain.downcase
|
||||
if (!@license.nil?)
|
||||
# logger.info "Location - " + @license.name
|
||||
ActiveRecord::Base.establish_connection(website_connection(@license))
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
development:
|
||||
secret_key_base: b61d85f8ed2a1a9e0eeece3443b3e8f838d002cc1d9f32115d8e93db920e2957adfedc57501d44741211538f3108b742cdeada87d5bfae796c53da1f90a3cd61
|
||||
sx_provision_url: 192.168.1.94:3002/api #provision.zsai.ws/api
|
||||
sx_provision_url: 192.168.1.147:3002/api #provision.zsai.ws/api
|
||||
server_mode: cloud
|
||||
cipher_type: AES-256-CBC
|
||||
aes_key: <%= ENV['AES_KEY'] %>
|
||||
|
||||
Reference in New Issue
Block a user