forked from saurabh/orbit4-5
fix for update manager
This commit is contained in:
parent
a33022cb4f
commit
4511b11d99
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue