Add read timeout to paperclip when it's downloading remote images

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
Eugen Rochko 2017-01-07 15:43:56 +01:00
parent 989c3f4002
commit 7ddec6e7c3
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
Paperclip::Attachment.default_options[:read_timeout] = 60
if ENV['S3_ENABLED'] == 'true'
Aws.eager_autoload!(services: %w(S3))