1
0
Fork 0

Add S3 config to production for paperclip

This commit is contained in:
Andrew Tomaka 2015-10-16 09:46:40 -04:00
parent d582af1238
commit 896e7eb175

View file

@ -76,4 +76,14 @@ Rails.application.configure do
# Do not dump schema after migrations. # Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false config.active_record.dump_schema_after_migration = false
# paperclip
config.paperclip_defaults = {
storage: :s3,
s3_credentials: {
bucket: ENV['S3_BUCKET_NAME'],
access_key_id: ENV['AWS_ACCESS_KEY_ID'],
secret_access_key: ENV['AWS_SECRET_ACCESS_KEY']
}
}
end end