Don't load ActiveJob railtie (#16074)
This commit is contained in:
parent
92b1958181
commit
f471ba9bd6
3 changed files with 1 additions and 9 deletions
|
|
@ -3,7 +3,7 @@ require_relative "boot"
|
|||
require "rails"
|
||||
# Pick the frameworks you want:
|
||||
require "active_model/railtie"
|
||||
require "active_job/railtie"
|
||||
# require "active_job/railtie"
|
||||
require "active_record/railtie"
|
||||
# require "active_storage/engine"
|
||||
require "action_controller/railtie"
|
||||
|
|
@ -72,8 +72,6 @@ module PracticalDeveloper
|
|||
require_dependency(file)
|
||||
end
|
||||
|
||||
config.active_job.queue_adapter = :sidekiq
|
||||
|
||||
config.middleware.use Rack::Deflater
|
||||
|
||||
config.i18n.load_path += Dir[Rails.root.join("config/locales/**/*.yml")]
|
||||
|
|
|
|||
|
|
@ -76,10 +76,6 @@ Rails.application.configure do
|
|||
default_expiration = 24.hours.to_i
|
||||
config.cache_store = :redis_cache_store, { url: redis_url, expires_in: default_expiration }
|
||||
|
||||
# Use a real queuing backend for Active Job (and separate queues per environment)
|
||||
# config.active_job.queue_adapter = :resque
|
||||
# config.active_job.queue_name_prefix = "practical_developer_production"
|
||||
|
||||
config.action_mailer.perform_caching = false
|
||||
|
||||
# Ignore bad email addresses and do not raise email delivery errors.
|
||||
|
|
|
|||
|
|
@ -58,8 +58,6 @@ Rails.application.configure do
|
|||
# Tell Active Support which deprecation messages to disallow.
|
||||
config.active_support.disallowed_deprecation_warnings = []
|
||||
|
||||
config.active_job.queue_adapter = :test
|
||||
|
||||
# Debug is the default log_level, but can be changed per environment.
|
||||
config.log_level = :debug
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue