Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View amazon_s3.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# 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.