Skip to content

Instantly share code, notes, and snippets.

@jspillers
Created February 24, 2010 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jspillers/313549 to your computer and use it in GitHub Desktop.
Save jspillers/313549 to your computer and use it in GitHub Desktop.
# Image Server Configuration
IMAGE_SERVER_APP_CODE = 'dish'
IMAGE_SERVER = "http://204.236.234.214"
BASE_ASSET_HOST = "#{IMAGE_SERVER}/#{IMAGE_SERVER_APP_CODE}"
# Selective External Asset Checking
ActionController::Base.asset_host = Proc.new { |source, request|
# This app server has many images versioned. Some images however live outside
# the scope of this application. In that case, look for them on that app server.
if source[0..4] == "/dish"
"http://204.236.234.214"
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment