Added the config.secret_key = 'raise_no_secret_key' if Rails.env.production? to config/initializers/devise.rb