Skip to content

Commit

Permalink
Testing image upload via Amazon S3
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Gehani committed Nov 8, 2013
1 parent 0c0bc16 commit 5f24107
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
# config heroku to us Amazon S3 to store files
config.paperclip_defaults = {
:storage => :s3,
:s3_credentials => {
:bucket => ENV['AWS_BUCKET'],
:bucket => ENV['AWS_BUCKET'],
:s3_credentials => {
:access_key_id => ENV['AWS_ACCESS_KEY_ID'],
:secret_access_key => ENV['AWS_SECRET_ACCESS_KEY']
}
Expand Down
2 changes: 2 additions & 0 deletions config/initializers/paperclip.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# config/initializers/paperclip.rb
Paperclip::Attachment.default_options[:s3_host_name] = 'event_sample_images.amazonaws.com'

0 comments on commit 5f24107

Please sign in to comment.