Create a gist now

Instantly share code, notes, and snippets.

# put following info at ~/config/app_config.yml
s3_bucket_name: _enter_bucket_name_for_your_app_
s3_access_key_id: _enter_s3_access_key_id_
s3_secret_access_key: _enter_s3_secret_access_key_
# put following code as ~/config/initializers/001_app_congfig.rb
require 'ostruct'
require 'yaml'
appconfig ="#{Rails.root}/config/app_config.yml"))
env_config = appconfig.send(Rails.env) rescue nil
appconfig.common.update(env_config) unless env_config.nil?
AppConfig =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment