Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Kao committed Nov 22, 2017
2 parents 5cb98fe + 0bd6cbf commit 27722c1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
1 change: 0 additions & 1 deletion .env

This file was deleted.

3 changes: 1 addition & 2 deletions app/models/medium.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ class Medium < ApplicationRecord
has_attached_file :attachment,
storage: :s3,
styles: { medium: "300x300>", thumb: "100x100>" },
default_url: "/images/:style/missing.png",
:s3_credentials => S3_CREDENTIALS
default_url: "/images/:style/missing.png"

validates_attachment :attachment,
content_type: { content_type: ["image/jpeg", "image/gif", "image/png"] }
Expand Down
4 changes: 2 additions & 2 deletions config/aws.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
access_key_id: ENV['S3_ACCESS_KEY_ID']
secret_access_key: ENV['S3_SECRET_ACCESS_KEY']
access_key_id: <%= ENV['S3_ACCESS_KEY_ID'] %>
secret_access_key: <%= ENV['S3_SECRET_ACCESS_KEY'] %>

5 changes: 3 additions & 2 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@
:storage => :s3,
:s3_region => "us-east-1",
:url => ":s3_domain_url",
:bucket => 'stuyspec-media-testing',
:s3_protocol => "http"
:s3_endpoint => 's3-us-east-1.amazonaws.com',
:bucket => 'stuyspec-images',
:s3_protocol => "https"
}
# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
Expand Down
7 changes: 4 additions & 3 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@

config.paperclip_defaults = {
:storage => :s3,
:s3_region => "us-east-2",
:s3_region => "us-east-1",
:url => ":s3_domain_url",
:bucket => 'stuyspec-media',
:s3_protocol => "http"
:s3_endpoint => 's3-us-east-1.amazonaws.com',
:bucket => 'stuyspec-images',
:s3_protocol => "https"
}
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation cannot be found).
Expand Down

0 comments on commit 27722c1

Please sign in to comment.