Skip to content
Browse files

[#8] AWS settings for production environment

  • Loading branch information...
1 parent 213aaf9 commit aa96ac6de2a00c6839a1e9b8e337e104e795566a @harlow harlow committed Aug 2, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 config/environments/production.rb
View
11 config/environments/production.rb
@@ -64,4 +64,15 @@
# Log the query plan for queries taking more than this (works
# with SQLite, MySQL, and PostgreSQL)
# config.active_record.auto_explain_threshold_in_seconds = 0.5
+
+ # Amazon S3 settings for Paperclip uploads
+ config.paperclip_defaults = {
+ :storage => :s3,
+ :s3_protocol => 'http',
+ :s3_credentials => {
+ :bucket => ENV['AWS_BUCKET'],
+ :access_key_id => ENV['AWS_ACCESS_KEY_ID'],
+ :secret_access_key => ENV['AWS_SECRET_ACCESS_KEY']
+ }
+ }
end

0 comments on commit aa96ac6

Please sign in to comment.
Something went wrong with that request. Please try again.