uncomment the new s3_region setting so that nobody needs to update his app_config.yml when he's using S3
This commit is contained in:
parent
ee1c394aa2
commit
2a449aa8c4
2 changed files with 2 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ default:
|
||||||
#s3_key: 'key'
|
#s3_key: 'key'
|
||||||
#s3_secret: 'secret'
|
#s3_secret: 'secret'
|
||||||
#s3_bucket: 'my_photos'
|
#s3_bucket: 'my_photos'
|
||||||
#s3_region: 'us-east-1'
|
s3_region: 'us-east-1'
|
||||||
|
|
||||||
# If you want normal Rails logs, set this to false in the appropriate environment.
|
# If you want normal Rails logs, set this to false in the appropriate environment.
|
||||||
# It is false by default in development and test.
|
# It is false by default in development and test.
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ CarrierWave.configure do |config|
|
||||||
config.s3_access_key_id = AppConfig[:s3_key]
|
config.s3_access_key_id = AppConfig[:s3_key]
|
||||||
config.s3_secret_access_key = AppConfig[:s3_secret]
|
config.s3_secret_access_key = AppConfig[:s3_secret]
|
||||||
config.s3_bucket = AppConfig[:s3_bucket]
|
config.s3_bucket = AppConfig[:s3_bucket]
|
||||||
config.s3_region = AppConfig[:s3_region]
|
config.s3_region = AppConfig[:s3_region]
|
||||||
config.s3_use_ssl = true
|
config.s3_use_ssl = true
|
||||||
config.cache_dir = "#{Rails.root}/tmp/uploads"
|
config.cache_dir = "#{Rails.root}/tmp/uploads"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue