Created
May 15, 2013 03:20
-
-
Save harish86/5581430 to your computer and use it in GitHub Desktop.
Initializing APP_CONFIG from /config/config.yml in a rails application
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
# Location: config/initializers/app_config.rb | |
APP_CONFIG = YAML.load_file(File.join(Rails.root, 'config', 'config.yml'))[Rails.env] |
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
development: | |
s3_bucket_name: "development-bucket" | |
staging: | |
s3_bucket_name: "staging-bucket" | |
production: | |
s3_bucket_name: "production-bucket" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment