Custom rails environment, devise complains about secret key -
i have created new environment dev_fast_assets
many optimizations (precompiling assets...) improve responsiveness of website on slow laptops (because when serving assets takes 20sec+, end drinking coffee)
so have created new file in /config/environments
, (almost copy-paste development.rb), have added in mongoid.yml
, ldap.yml
, , believe that's there do.
but when run rails s -e dev_fast_assets
,
c:/dev/ruby21-x64/lib/ruby/gems/2.1.0/gems/devise-3.4.1/lib/devise/rails/routes.rb:480:in `raise_no_secret_key': devise.secret_key not set. please add following devise initializer: config.secret_key = 'yyyy
now happen have config.secret_key = 'xxxx'
(different yyyy
) in config.initializers/devise.rb
, , far i've never had problems deployment in production using capistrano.
what missing ? want dev_fast_assets
environment behave development
one, except maybe 1 line of 2 changes...
it may due 'active_reload' gem. try remove gemfile , try again. https://github.com/plataformatec/devise/issues/2641
Comments
Post a Comment