diff options
author | Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp> | 2018-03-05 04:28:24 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-03-04 20:28:24 +0100 |
commit | c110fa62ac0f475efd64572026835a7514c410ae (patch) | |
tree | 1ef16b5369a589fdb60b557f68c5a8288eaa83b6 /config/environments/development.rb | |
parent | 7a6eaad445ca009001a31657d163b0316b27e9e4 (diff) |
Provide default OTP_SECRET value for development environment (#6617)
Diffstat (limited to 'config/environments/development.rb')
-rw-r--r-- | config/environments/development.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb index 2da407c32..285fea8b8 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -82,6 +82,8 @@ Rails.application.configure do Bullet.add_whitelist type: :n_plus_one_query, class_name: 'User', association: :account end + + config.x.otp_secret = ENV.fetch('OTP_SECRET', '1fc2b87989afa6351912abeebe31ffc5c476ead9bf8b3d74cbc4a302c7b69a45b40b1bbef3506ddad73e942e15ed5ca4b402bf9a66423626051104f4b5f05109') end ActiveRecordQueryTrace.enabled = ENV.fetch('QUERY_TRACE_ENABLED') { false } |