OregonStateUniversity / ltpbr-explorer

Tracking artificial beaver dams for river restoration.
http://bdaexplorer.com
GNU General Public License v3.0
1 stars 0 forks source link

Set up s3 bucket and migrate project:photo #20

Closed nathanstruhs closed 6 years ago

ybakos commented 6 years ago

@nathanstruhs I'll set up the buckets.

ybakos commented 6 years ago

@nathanstruhs We'll use the osucascades bucket. Here's the paperclip config from ecotone:

# production
config.paperclip_defaults = {
  storage: :s3,
  s3_region: ENV.fetch('AWS_REGION'),
  url: ":s3_domain_url",
  path: "/#{Rails.application.class.parent_name.downcase}/#{ENV.fetch('AWS_S3_ENV')}/:class/:attachment/:id/:style/:basename.:extension",
  s3_credentials: {
    bucket: ENV.fetch('AWS_S3_BUCKET'),
    access_key_id: ENV.fetch('AWS_S3_KEY'),
    secret_access_key: ENV.fetch('AWS_S3_SECRET'),
  }
}

dependent environment variables: