Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActiveRecord::Base.establish_connection on_worker_boot #25

Closed
cjbottaro opened this issue Jan 20, 2014 · 4 comments
Closed

ActiveRecord::Base.establish_connection on_worker_boot #25

cjbottaro opened this issue Jan 20, 2014 · 4 comments
Assignees

Comments

@cjbottaro
Copy link

The puma readme suggests the following code when preloading the app:

on_worker_boot do
  ActiveSupport.on_load(:active_record) do
    ActiveRecord::Base.establish_connection
  end
end

Should this be a part of the config capistrano-puma generates?

@crhan
Copy link
Collaborator

crhan commented Jan 20, 2014

can #26 fix your need?

@cjbottaro
Copy link
Author

Yeah, looks like it. Thanks!

@crhan
Copy link
Collaborator

crhan commented Jan 20, 2014

Don't forget run cap production puma:config to refresh puma config.

@ghost ghost assigned crhan Jan 21, 2014
@crhan
Copy link
Collaborator

crhan commented Jan 28, 2014

this issue seems almost done, this feature will release in v0.2.0. so close it

@crhan crhan closed this as completed Jan 28, 2014
seuros added a commit that referenced this issue Jan 28, 2014
add a trigger to puma config, for support Issue #25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants