mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 04:21:36 +00:00
Add a default random for secrets
Add a default random for APP_SECRET_KEY_BASE to avoid startup issues.
This commit is contained in:
parent
3e22b06f30
commit
f8d6368f10
1 changed files with 4 additions and 4 deletions
|
@ -1,11 +1,11 @@
|
|||
development:
|
||||
secret_key_base: <%= ENV["APP_SECRET_KEY_BASE"] %>
|
||||
secret_key_base: <%= ENV["APP_SECRET_KEY_BASE"] || SecureRandom.alphanumeric(32) %>
|
||||
|
||||
test:
|
||||
secret_key_base: <%= ENV["APP_SECRET_KEY_BASE"] %>
|
||||
secret_key_base: <%= ENV["APP_SECRET_KEY_BASE"] || SecureRandom.alphanumeric(32) %>
|
||||
|
||||
production:
|
||||
secret_key_base: <%= ENV["APP_SECRET_KEY_BASE"] %>
|
||||
secret_key_base: <%= ENV["APP_SECRET_KEY_BASE"] || SecureRandom.alphanumeric(32) %>
|
||||
|
||||
staging:
|
||||
secret_key_base: <%= ENV["APP_SECRET_KEY_BASE"] %>
|
||||
secret_key_base: <%= ENV["APP_SECRET_KEY_BASE"] || SecureRandom.alphanumeric(32) %>
|
Loading…
Reference in a new issue