Skip to content

Commit

Permalink
Merge pull request #164 from Arthur-Rabello/Dev_config
Browse files Browse the repository at this point in the history
Desabilita carrierwave do ambiente de desenvolvimento
  • Loading branch information
edersoares authored Jun 19, 2024
2 parents 51efe8f + bcd0314 commit e9d8cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/carrierwave.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FOG_AUTHENTICATED_URL_EXPIRATION = 14_400 # 4 hours

CarrierWave.configure do |config|
if Rails.application.secrets['AWS_ACCESS_KEY_ID']
if Rails.application.secrets['AWS_ACCESS_KEY_ID'] && !Rails.env.development?
config.storage = :aws
config.aws_bucket = Rails.application.secrets[:AWS_BUCKET]
config.aws_acl = 'private'
Expand Down

0 comments on commit e9d8cf0

Please sign in to comment.