Only use DelayedJob in production
authorTom Hughes <tom@compton.nu>
Sat, 3 Nov 2018 11:57:25 +0000 (11:57 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 3 Nov 2018 11:57:25 +0000 (11:57 +0000)
In development just let the default async adaptor be used so
that people don't need to run a daemon.

config/application.rb
config/environments/production.rb

index a5431f0..5139111 100644 (file)
@@ -51,8 +51,5 @@ module OpenStreetMap
       config.logstasher.logger_path = LOGSTASH_PATH
       config.logstasher.log_controller_parameters = true
     end
-
-    # Use DelayedJob as the persistent backend for ActiveJob
-    config.active_job.queue_adapter = :delayed_job
   end
 end
index 4300321..9e15487 100644 (file)
@@ -99,4 +99,7 @@ Rails.application.configure do
 
   # Enable autoloading of dependencies.
   config.enable_dependency_loading = true
+
+  # Use delayed job to queue jobs in production.
+  config.active_job.queue_adapter = :delayed_job
 end