Created
February 24, 2010 16:00
-
-
Save jspillers/313549 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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