Sha256: 2e7ff5e17cad3084a365694c16ca06160d522b3d89646fa27b5aef3419c1c074
Contents?: true
Size: 470 Bytes
Versions: 20
Compression:
Stored size: 470 Bytes
Contents
# we need to_prepare so that this is checked multiple times during startup as erp_tech_svcs.file_storage can be overridden. Rails.application.config.to_prepare do # Rescue here, Compass should not die if it cannot connect to S3 begin ErpTechSvcs::FileSupport::S3Manager.setup_connection() if Rails.application.config.erp_tech_svcs.file_storage == :s3 rescue Exception => e Rails.logger.error "ERROR: Failed to connect to Amazon S3 #{e.inspect}" end end
Version data entries
20 entries across 20 versions & 1 rubygems