add auto restart after bundle update
This commit is contained in:
parent
e64852e86b
commit
f1de48f203
|
@ -140,6 +140,9 @@ class Admin::PlaygroundController < OrbitAdminController
|
||||||
end
|
end
|
||||||
mul.status['alive'] = false
|
mul.status['alive'] = false
|
||||||
mul.save
|
mul.save
|
||||||
|
Thread.new do
|
||||||
|
Bundler.with_clean_env{system("kill -s USR2 `cat tmp/pids/unicorn.pid`")}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
mul.status['alive'] = false
|
mul.status['alive'] = false
|
||||||
|
|
Loading…
Reference in New Issue