Closed stephen-puiszis closed 4 years ago
Hi @stephen-puiszis - the config/initializers/devise.rb
in this repo is
intended as a way to provide sensible default settings for Devise. It will be
automatically loaded before your own app's initializers, simply by virtue of
having solidus_auth_devise
in your Gemfile
.
You can provide an initializer in your app to override or extend this default
configuration as necessary - this is where you should supply a
Devise.secret_key
value for your app.
You can generate a basic initializer with the solidus:auth:install
Rails
generator. This will generate a Devise.secret_key
value for you using
SecureRandom.hex
, but be warned that this will not overwrite an existing
config/initializers/devise.rb
file.
Example usage:
$ rails generate solidus:auth:install
create config/initializers/devise.rb
run bundle exec rake railties:install:migrations FROM=solidus_auth_devise from "."
run bundle exec rake db:migrate from "."
$ cat config/initializers/devise.rb
Devise.secret_key = "37a3048dc9e203caad6698537c9960a0f9923979bbe7b8e5f613e48fccd4b41628b48cc1415c6f520eeccef247a59161a740"
I think this issue can be safely closed, or is this still open for documentation purposes?
I'm using the default Devise initializer provided by the gem. When starting up a rails server, I get the following warning from Devise. Is this intentional to use a pepper without a secret_key?