fix for update manager

This commit is contained in:
Harry Bomrah 2014-12-01 19:37:59 +08:00
parent a33022cb4f
commit 4511b11d99
1 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ class Admin::SitesController < OrbitAdminController
result = "failed"
else
result = "success"
p1 = fork { bundle_install }
p1 = fork { bundle_update }
Process.detach(p1)
end
@ -116,7 +116,7 @@ class Admin::SitesController < OrbitAdminController
end
def bundle_install
Bundler.with_clean_env { `cd #{Rails.root} && bundle install` }
Bundler.with_clean_env { `cd #{Rails.root} && bundle update` }
%x(kill -s USR2 `cat tmp/pids/unicorn.pid`)
sleep 5
render :nothing => true