Devise+TravisCI+Heroku
If I want to use Travis CI with Rails application using Device, I have to do following.
-
Add to my Devise initializer
config/initializers/devise.rb:config.secret_key = ENV['SECRET_KEY_BASE'] -
Ensure that there is Heroku environment variable named
SECRET_KEY_BASE -
In TravisCI web-interface set environment variable named
SECRET_KEY_BASEwith value from Step 2.
After that changes TravisCI works correctly and all builds are passed.