Skip to content

Instantly share code, notes, and snippets.

@KensoDev
Created June 25, 2012 22:29
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 KensoDev/2991809 to your computer and use it in GitHub Desktop.
Save KensoDev/2991809 to your computer and use it in GitHub Desktop.
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