I’m actually configuring a gitorious at home and I’ve a problem with rake.
I’ve got to do this rake db:migrate but when I do it i’ve got this message :
rake aborted!
A secret is required to generate an integrity hash for cookie session data. Use config.action_controller.session = { :key => “_myapp_session”, :secret => “some secret phrase of at least 30 characters” } in config/environment.rb
So I edited config/environment.rb by adding this line :
config.action_controller.session = { :key => “gitorious”, :secret => “foobar” }
I also try to edit config/environments/production.rb. But problem still exists.
My env is set to production
export RAILS_ENV=production
I’m running on Debian Squeeze with rake version 0.8.7.
Edit : My password is longer than 30chars
Welcome to Stack Overflow,
The session secret needs to be at least 30 characters, the example you posted is less than 30 characters. A tool to assist in generating random keys is http://strongpasswordgenerator.com/. You can specify that you want a random key with the length of 30 characters.