Skip to content

Commit

Permalink
Set SECRET_KEY_BASE_DUMMY when building assets
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Nov 8, 2023
1 parent ed43477 commit 960f2a2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cookbooks/web/resources/rails_port.rb
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@
directory rails_directory
command "rails yarn:install"
environment "HOME" => rails_directory,
"RAILS_ENV" => "production"
"RAILS_ENV" => "production",
"SECRET_KEY_BASE_DUMMY" => "1"
user new_resource.user
group new_resource.group
subscribes :run, "git[#{rails_directory}]"
Expand All @@ -437,7 +438,8 @@
directory rails_directory
command "rails i18n:js:export"
environment "HOME" => rails_directory,
"RAILS_ENV" => "production"
"RAILS_ENV" => "production",
"SECRET_KEY_BASE_DUMMY" => "1"
user new_resource.user
group new_resource.group
subscribes :run, "git[#{rails_directory}]"
Expand All @@ -449,7 +451,8 @@
directory rails_directory
command "rails assets:precompile"
environment "HOME" => rails_directory,
"RAILS_ENV" => "production"
"RAILS_ENV" => "production",
"SECRET_KEY_BASE_DUMMY" => "1"
user new_resource.user
group new_resource.group
subscribes :run, "git[#{rails_directory}]"
Expand Down

0 comments on commit 960f2a2

Please sign in to comment.