Created
June 25, 2012 22:29
-
-
Save KensoDev/2991809 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
module Web | |
CONFIG = YAML.load(ERB.new(File.read(Rails.root.join("config/web.yml"))).result)[Rails.env] | |
HOSTNAME = CONFIG['hostname'] | |
BACKEND_HOSTNAME = CONFIG['backend_hostname'] | |
WHITELISTING = CONFIG['whitelisting'] | |
BASE_URL = "http://#{HOSTNAME}/" | |
BACKEND_URL = "http://#{BACKEND_HOSTNAME}/" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment