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

Version Path
erp_tech_svcs-3.1.8 config/initializers/file_support.rb
erp_tech_svcs-3.1.7 config/initializers/file_support.rb
erp_tech_svcs-3.1.5 config/initializers/file_support.rb
erp_tech_svcs-3.1.4 config/initializers/file_support.rb
erp_tech_svcs-3.1.3 config/initializers/file_support.rb
erp_tech_svcs-3.1.2 config/initializers/file_support.rb
erp_tech_svcs-3.1.1 config/initializers/file_support.rb
erp_tech_svcs-3.0.12 config/initializers/file_support.rb
erp_tech_svcs-3.1.0 config/initializers/file_support.rb
erp_tech_svcs-3.0.11 config/initializers/file_support.rb
erp_tech_svcs-3.0.10 config/initializers/file_support.rb
erp_tech_svcs-3.0.9 config/initializers/file_support.rb
erp_tech_svcs-3.0.8 config/initializers/file_support.rb
erp_tech_svcs-3.0.7 config/initializers/file_support.rb
erp_tech_svcs-3.0.6 config/initializers/file_support.rb
erp_tech_svcs-3.0.5 config/initializers/file_support.rb
erp_tech_svcs-3.0.4 config/initializers/file_support.rb
erp_tech_svcs-3.0.3 config/initializers/file_support.rb
erp_tech_svcs-3.0.2 config/initializers/file_support.rb
erp_tech_svcs-3.0.1 config/initializers/file_support.rb