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"
|
result = "failed"
|
||||||
else
|
else
|
||||||
result = "success"
|
result = "success"
|
||||||
p1 = fork { bundle_install }
|
p1 = fork { bundle_update }
|
||||||
Process.detach(p1)
|
Process.detach(p1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ class Admin::SitesController < OrbitAdminController
|
||||||
end
|
end
|
||||||
|
|
||||||
def bundle_install
|
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`)
|
%x(kill -s USR2 `cat tmp/pids/unicorn.pid`)
|
||||||
sleep 5
|
sleep 5
|
||||||
render :nothing => true
|
render :nothing => true
|
||||||
|
|
Loading…
Reference in New Issue