Sha256: e1b6e005b67dbe01976ee62d0cc5c872dab653f95160092e0522c1f0f18f488e
Contents?: true
Size: 1.69 KB
Versions: 7
Compression:
Stored size: 1.69 KB
Contents
# require File.expand_path('../../config/environment', __FILE__) # Load the Rails application. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) require 'bundler/setup' # Set up gems listed in the Gemfile. require 'rails' %w[ action_controller/railtie action_view/railtie action_mailer/railtie active_job/railtie action_cable/engine rails/test_unit/railtie sprockets/railtie ].each do |railtie| begin require railtie rescue LoadError => error puts 'Unable to load libraries' puts error.message end end require 'mail' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module WebCore class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. # Configure redis cache config.eager_load = false config.cache_store = :redis_store, 'redis://127.0.0.1:6379/11/cache' config.autoload_paths += %W(#{config.root}/lib) config.generators do |g| g.template_engine :haml g.orm :mongoid g.test_framework :shoulda g.fallbacks[:shoulda] = :test_unit g.fixture_replacement :factory_bot end config.active_job.queue_adapter = :delayed_job # Configure the default encoding used in templates for Ruby 1.9. config.encoding = 'utf-8' config.logger = Logger.new(STDOUT) config.logger.level = Logger::DEBUG end end Delayed::Worker.delay_jobs = false # Initialize the Rails application. Rails.application.initialize!
Version data entries
7 entries across 7 versions & 1 rubygems