[Git][noosfero/noosfero][master] puma: reconnect cache
Bráulio Bhavamitra
gitlab at mg.gitlab.com
Sat Mar 18 11:07:46 BRT 2017
Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero
Commits:
35b2fcaa by Braulio Bhavamitra at 2017-03-18T11:07:17-03:00
puma: reconnect cache
- - - - -
1 changed file:
- config/puma.rb
Changes:
=====================================
config/puma.rb
=====================================
--- a/config/puma.rb
+++ b/config/puma.rb
@@ -58,8 +58,9 @@ end
after_worker_fork do |worker_nr|
begin
ActiveRecord::Base.establish_connection
+ Rails.cache.reconnect
rescue
- retry #if this fail it will stop worker killer
+ retry #if this fail it will stop worker init
end
WorkerDaemons.each do |daemon, opts|
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/35b2fcaa7966ba58dd3696db9d2d63427d2d0058
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170318/af0a01de/attachment-0001.html>
More information about the Noosfero-dev
mailing list