Fix bug.
This commit is contained in:
parent
731138f556
commit
e6ca9c468d
|
@ -117,7 +117,7 @@ class SiteConstruct
|
||||||
end
|
end
|
||||||
domain_name_str = self.domain_name
|
domain_name_str = self.domain_name
|
||||||
if default_domain.present?
|
if default_domain.present?
|
||||||
domain_name_str = ([default_domain] + (domain_name_str.split(/\s+/) - [default_domain])).join(" ")
|
domain_name_str = ((domain_name_str.split(/\s+/) - [default_domain]) + [default_domain]).join(" ")
|
||||||
end
|
end
|
||||||
if old_server_block.present?
|
if old_server_block.present?
|
||||||
new_server_block = old_server_block.gsub(/(listen\s+)[^;]+/){|ff| "#{$1}#{port_text}"}
|
new_server_block = old_server_block.gsub(/(listen\s+)[^;]+/){|ff| "#{$1}#{port_text}"}
|
||||||
|
|
Loading…
Reference in New Issue