markevans/dragonfly — Issue #155: Dragonfly breaks asset compilation on Heroku Cedar (Potentially easy fix)
Author: thinkgareth
Created: 2011-12-19 17:57:41+00:00
State: open

Heroku Cedar no longer includes the environment vars at the pre-compilation phase, this means Dragonfly searches for the S3 env vars and fails to find them and errors.

When erroring - it does so gracefully (your app still deploys) but all asset compilation breaks. For example any SCSS like:

#entry_form
{
background: image-url("fb_like_form_bg.gif") no-repeat;
width: 520px;
height: 305px;
}

This will fail to be converted to the actual background asset locations.

Heroku's statement on the variables here:

http://devcenter.heroku.com/articles/rails31_heroku_cedar#troubleshooting