From 9b180c8f97133f80c6fd858e32728c8f1efd2768 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 17 Jul 2022 22:31:36 +0100 Subject: [PATCH] Use rails instead of rake to start queue runners --- cookbooks/dev/recipes/default.rb | 2 +- cookbooks/web/recipes/rails.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/dev/recipes/default.rb b/cookbooks/dev/recipes/default.rb index 513cee803..d623d05ff 100644 --- a/cookbooks/dev/recipes/default.rb +++ b/cookbooks/dev/recipes/default.rb @@ -222,7 +222,7 @@ if node[:postgresql][:clusters][:"14/main"] type "simple" user "apis" working_directory "/srv/%i.apis.dev.openstreetmap.org/rails" - exec_start "#{node[:ruby][:bundle]} exec rake jobs:work" + exec_start "#{node[:ruby][:bundle]} exec rails jobs:work" restart "on-failure" private_tmp true private_devices true diff --git a/cookbooks/web/recipes/rails.rb b/cookbooks/web/recipes/rails.rb index 50758caea..672da6bad 100644 --- a/cookbooks/web/recipes/rails.rb +++ b/cookbooks/web/recipes/rails.rb @@ -155,7 +155,7 @@ systemd_service "rails-jobs@" do environment "RAILS_ENV" => "production", "QUEUE" => "%I" user "rails" working_directory rails_directory - exec_start "#{node[:ruby][:bundle]} exec rake jobs:work" + exec_start "#{node[:ruby][:bundle]} exec rails jobs:work" restart "on-failure" private_tmp true private_devices true -- 2.39.5