fix the error that cannot change the domain of current site

This commit is contained in:
邱博亞 2021-02-19 16:11:01 +08:00
parent 22249814af
commit cb7deed4ac
1 changed files with 3 additions and 1 deletions

View File

@ -133,7 +133,9 @@ class Admin::SitePanelController < OrbitAdminController
render 'see_detail_for_created_site' and return
elsif params[:type] == 'change_server_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
elsif params[:type] == 'delete_from_list'
SiteConstruct.find(params[:id]).destroy