fix the error that cannot change the domain of current site
This commit is contained in:
parent
22249814af
commit
cb7deed4ac
|
@ -133,7 +133,9 @@ class Admin::SitePanelController < OrbitAdminController
|
||||||
render 'see_detail_for_created_site' and return
|
render 'see_detail_for_created_site' and return
|
||||||
elsif params[:type] == 'change_server_name'
|
elsif params[:type] == 'change_server_name'
|
||||||
cmd = "bundle exec rake create_site:change_site_server_name[#{params[:id]},'#{params[:site_construct][:domain_name]}']"
|
cmd = "bundle exec rake create_site:change_site_server_name[#{params[:id]},'#{params[:site_construct][:domain_name]}']"
|
||||||
system(cmd)
|
Thread.new do
|
||||||
|
system(cmd)
|
||||||
|
end
|
||||||
redirect_to :back and return
|
redirect_to :back and return
|
||||||
elsif params[:type] == 'delete_from_list'
|
elsif params[:type] == 'delete_from_list'
|
||||||
SiteConstruct.find(params[:id]).destroy
|
SiteConstruct.find(params[:id]).destroy
|
||||||
|
|
Loading…
Reference in New Issue