-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Devise.secret_key was not set. Please add the following to your Devise initializer #235
Comments
check your config/secrets.yml file. most likely you'll need to set an environment variable for it. |
I have a local
since |
Set SecretKey
http://stackoverflow.com/questions/30089977/devise-token-auth-error-devise-secret-key-was-not-set |
Seems solved. Reopen if not @karimbutt |
I am getting the following error when I try to migrate my database or run my app in production: Devise.secret_key was not set. Please add the following to your Devise initializer:
config.secret_key = 'my secret key'
When I add this secret key, I get the following error:
NoMethodError: undefined method `secret_key=' for DeviseTokenAuth:Module
I am not sure why this error keeps occurring - note this issue only occurs in production.
The text was updated successfully, but these errors were encountered: