What have you found for these years?

2011-12-14

Rails 3.1 on Heroku Cedar serving assets

from: Lin Jen-Shin (godfat)
date: Wed, Dec 14, 2011 at 6:31 PM
subject: cedar stack might be good to go now

Finally I had figured out what is preventing from
Cedar stack serving assets. It's newrelic_rpm!

newrelic_rpm would try to connect to database
while booting, and on Heroku `rake assets:precompile`
phrase, there's no database could be connected,
thus the assets cannot be precompiled.

If the assets cannot be precompiled, it seems all assets
cannot be served, instead, it will merely send a "X-Sendfile"
header to the clients, the browsers.

After telling Gemfile do not load newrelic_rpm eagerly by:

gem 'newrelic_rpm', '>=3.1.1', :require => false

Then `rake assets:precompile` is running fine on Cedar,
and our assets could be served correctly now.
I believe this should be somehow documented on Heroku,
in this page, under the section of "Troubleshooting"

related tweet: (0) (1)

0 retries:

Post a Comment

Note: Only a member of this blog may post a comment.



All texts are licensed under CC Attribution 3.0