Skip to content

Commit

Permalink
fix paperclip configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Mar 3, 2020
1 parent dd2c7f5 commit 83fdff8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@

config.paperclip_defaults = {
storage: :s3,
url: ":s3_host_alias/images/members/:id_partition/:filename",
url: "/images/members/:id_partition/:filename",
preserve_files: true,
s3_host_alias: "assets.datacite.org",
s3_host_name: "s3-eu-west-1.amazonaws.com",
s3_credentials: {
access_key_id: ENV['AWS_ACCESS_KEY_ID'],
Expand Down
4 changes: 1 addition & 3 deletions config/environments/stage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@

config.paperclip_defaults = {
storage: :s3,
url: ":s3_host_alias/images/members/:id_partition/:filename",
url: "/images/members/:id_partition/:filename",
preserve_files: true,
s3_alias_url: ""
s3_host_alias: "assets.test.datacite.org",
s3_host_name: "s3-eu-west-1.amazonaws.com",
s3_credentials: {
access_key_id: ENV['AWS_ACCESS_KEY_ID'],
Expand Down

0 comments on commit 83fdff8

Please sign in to comment.