Run job queue daemons in production mode
authorTom Hughes <tom@compton.nu>
Tue, 2 Jul 2019 08:25:18 +0000 (09:25 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 2 Jul 2019 08:25:18 +0000 (09:25 +0100)
cookbooks/web/recipes/rails.rb

index bef46bc..72268aa 100644 (file)
@@ -98,7 +98,7 @@ end
 systemd_service "rails-jobs@" do
   description "Rails job queue runner"
   type "simple"
-  environment "QUEUE" => "%I"
+  environment "RAILS_ENV" => "production", "QUEUE" => "%I"
   user "rails"
   working_directory rails_directory
   exec_start "/usr/local/bin/bundle#{ruby_version} exec rake jobs:work"