Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
# put following info at ~/config/app_config.yml
common:
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 = OpenStruct.new(YAML.load_file("#{Rails.root}/config/app_config.yml"))
env_config = appconfig.send(Rails.env) rescue nil
appconfig.common.update(env_config) unless env_config.nil?
AppConfig = OpenStruct.new(appconfig.common)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.