Skip to content

Commit

Permalink
Set SECRET_KEY_BASE_DUMMY for the statistics script
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Nov 9, 2023
1 parent d4ccdb8 commit d63f1ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cookbooks/web/templates/default/statistics.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ set -e
# Make sure /usr/local/bin is on the path
export PATH=$PATH:/usr/local/bin

# Tell rails not to worry about secret keys
export SECRET_KEY_BASE_DUMMY=1

# Generate new statistics
<%= @ruby %> -W0 <%= @directory %>/script/statistics > <%= @directory %>/tmp/data_stats.html

Expand Down

0 comments on commit d63f1ac

Please sign in to comment.