I am running a Rails 4.2.3 application that runs in production when deployed and with environment variables set through Heroku. However, my development and test environments suddenly began failing with this error:
DEPRECATION WARNING: You didn't set `secret_key_base`. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/Benjamin/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138)
According to everything I've found on StackOverflow and elsewhere, this probably has something to do with my secrets.yml file:
development: secret_key_base: LONG-KEY test: secret_key_base: LONG-KEY
I have tried resetting these keys with
rake secretto no avail. I have other environment variables set in secrets.yml that are being correctly set, but when I run Rails.application.secrets.secret_key_base from console I keep getting nil.
Any help would be much appreciated.