From 9c82d0eb2c75d1f5eb9b0689c5e3bed194fd1e0b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 9 Nov 2023 00:23:13 +0000 Subject: [PATCH] Set SECRET_KEY_BASE_DUMMY for the statistics script --- cookbooks/web/recipes/statistics.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbooks/web/recipes/statistics.rb b/cookbooks/web/recipes/statistics.rb index d3829f06c..84848b003 100644 --- a/cookbooks/web/recipes/statistics.rb +++ b/cookbooks/web/recipes/statistics.rb @@ -32,7 +32,8 @@ end systemd_service "web-statistics" do description "Generate web statistics" - environment "RAILS_ENV" => "production" + environment "RAILS_ENV" => "production", + "SECRET_KEY_BASE_DUMMY" => "1" user "rails" working_directory rails_directory exec_start "/usr/local/bin/statistics" -- 2.39.5