cloud change

This commit is contained in:
Yan
2017-11-30 17:29:56 +06:30
parent d15be90a9e
commit aa1d2e4f59
6 changed files with 54 additions and 62 deletions

View File

@@ -25,8 +25,7 @@ class ApplicationController < ActionController::Base
def lookup_domain
if request.subdomain.present? && request.subdomain != "www"
from = request.subdomain.downcase #+ "." + request.domain.downcase
puts from
from = request.subdomain.downcase + "." + request.domain.downcase
@license = cache_license(ENV["SX_PROVISION_URL"], from) # request.subdomain.downcase
if (!@license.nil?)
# logger.info "Location - " + @license.name