Add S3 config to production for paperclip
This commit is contained in:
parent
d582af1238
commit
896e7eb175
1 changed files with 10 additions and 0 deletions
|
@ -76,4 +76,14 @@ Rails.application.configure do
|
|||
|
||||
# Do not dump schema after migrations.
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue