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

Avoid DB connections during assets:precompile #2612

Merged
merged 1 commit into from
Oct 31, 2016

Conversation

nicolaracco
Copy link
Contributor

I'm unable to compile the assets when building a docker image because the assets:precompile task attempts to establish a connection to the database. The problem is related to the initializer of money-rails 1.3.0 that invoking ActiveRecord::Base.connection triggers a new connection to the database.

Since the 1.4.0, this bug has been fixed in money-rails (see the new initializer). It seems there are no regressions in the test suite, and the assets:precompile task is now running fine.

Given I'm still not confident with the codebase I didn't dare to update money-rails to the latest version (1.7.0).

@rap1ds
Copy link
Member

rap1ds commented Oct 31, 2016

@nicolaracco Thanks! I tried this locally and indeed, it fixes the issue with the MySQL connection when compiling assets. Thanks!

@rap1ds rap1ds merged commit 4f7dbba into sharetribe:master Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants