Skip to content

Commit

Permalink
Update doc/guides/7 - Hosting and Deployment/2 - Amazon S3 for Upload…
Browse files Browse the repository at this point in the history
…s.textile

For some reason I had to configure my credential that way to solve this exact issue:
#1278
  • Loading branch information
duccioarmenise authored and parndt committed Sep 14, 2012
1 parent b328f47 commit 97c269d
Showing 1 changed file with 13 additions and 0 deletions.
Expand Up @@ -50,6 +50,19 @@ ENV['S3_BUCKET']='fill_in_your_bucket_name_here'

(Note: For Heroku, you should use config vars to set your environment variables, using Heroku's command line utility. See "Heroku's config vars documentation":http://devcenter.heroku.com/articles/config-vars.)

Another option, expecially if you experience Dragonfly::DataStorage::S3DataStore exceptions, is to configure
your Amazon S3 credential using the following syntax:

<ruby>
Refinery::Core.configure do |config|
config.s3_backend = true
config.s3_access_key_id = 'fill_in_your_key_here'
config.s3_secret_access_key = 'fill_in_your_secret_key_here'
config.s3_bucket_name = 'fill_in_your_bucket_name_here'
config.s3_region = 'fill_in_your_buckets_region_here' # this one's not always required, default is 'us-east-1'
end
<ruby>

h3. Turning S3 on and off

S3 should automatically sense that it is enabled based on these ENV variables
Expand Down

0 comments on commit 97c269d

Please sign in to comment.