instacart / makara

A Read-Write Proxy for Connections; Also provides an ActiveRecord adapter.

Home Page:http://tech.taskrabbit.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assets precompilation fails when unable to connect with database

jaiganesh-ally opened this issue · comments

Application is hosted on Heroku private space, so when assets precompilation happens it does not have access to the database.
Makara is failing with
Makara::Errors::BlacklistConnection: [Makara/replica] could not connect to server: Connection timed out
Is the server running on host

This will fail without Makara also. Heroku has instructions for asset precompiles: https://devcenter.heroku.com/articles/rails-asset-pipeline#failures-in-the-assets-precompile-task