Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added notes about CSS rewriting tasks

  • Loading branch information...
commit 98c1dc22b1706f3ef12b864a478368563ee0dabb 1 parent 01c3c17
@fidothe fidothe authored
Showing with 4 additions and 0 deletions.
  1. +4 −0
@@ -24,6 +24,8 @@ In your `environments/production.rb`:
config.action_controller.asset_host = ""
config.action_controller.asset_path = CdnHelpers::AssetPath
+The gem also make the `rake` task `cdn:css_urls` available to you. This is for post-deployment rewriting of URLs within CSS files. It's destructive - it rewrites the files in place - but it doesn't require that the config vars above are set since it leaves URLs as absolute local URLs.
@@ -49,3 +51,5 @@ in templates use the `asset_url` helper:
<img src="{% asset_url "/images/thing.png" %}">
<img src="{% asset_url thing.image.src %}">
+The app provides the `cdn_css` command for ``. This uses the Ruby script process_css to do the heavy lifting, but relies on the `MEDIA_ROOT` and `MEDIA_URL` settings in `` to tell where to look and how to construct the URLs.
Please sign in to comment.
Something went wrong with that request. Please try again.