]> git.openstreetmap.org Git - chef.git/commitdiff
Set SECRET_KEY_BASE_DUMMY for the statistics script
authorTom Hughes <tom@compton.nu>
Thu, 9 Nov 2023 00:23:13 +0000 (00:23 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 9 Nov 2023 00:24:47 +0000 (00:24 +0000)
cookbooks/web/recipes/statistics.rb

index d3829f06c73815a839cb782c862717afd1277852..84848b0030eb2f67437b0aded36782fc2d1ae60c 100644 (file)
@@ -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"