diff --git a/config/secrets.yml b/config/secrets.yml index c44a38b..6da0179 100644 --- a/config/secrets.yml +++ b/config/secrets.yml @@ -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"] %> \ No newline at end of file + secret_key_base: <%= ENV["APP_SECRET_KEY_BASE"] || SecureRandom.alphanumeric(32) %> \ No newline at end of file