I recommend not using asset sync to if you're just trying to use cloudfront, 
you can just have it pull your assets directly from your app. You can see how 
to do it here:

http://ryantownsend.co.uk/post/13126016608/cloudfront-cdn-on-rails 


Essentially just sign up for a CDN on Cloud Front

Set this in your production.rb

  config.action_controller.asset_host = ENV["cloudfront_url"]

And you're good to go


you can also add

  config.static_cache_control = "public, max-age=2592000"


and 

  config.assets.digest = true


To get the best experience with the whole process. Let me know if you have 
questions about these settings, or run into issues.


-- 
Richard Schneeman
http://heroku.com

@schneems (http://twitter.com/schneems)


On Friday, April 20, 2012 at 9:33 AM, brianthecoder wrote:

> So I followed the guide here 
> https://devcenter.heroku.com/articles/cdn-asset-host-rails31, but for some 
> reason, during the assets:precompile rake task. Its not picking up any of my 
> environment variables. I even added a line to inspect the environment 
> variables in the asset_sync initalizer, and none of the environment variables 
> I have configured were in there. Am I missing something? 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>  
> To unsubscribe from this group, send email to
> [email protected] 
> (mailto:[email protected])
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en_US?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

Reply via email to