Vote #76092
完了Update Install/Upgrade guide for 3.x version and get gid of DEPRECATION WARNING: You didn't set config.secret_key_base
0%
説明
Need to add section for 3.x install and upgrade to 3.x where change such text
Run the following command from your new Redmine root directory: bundle exec rake generate_secret_token This will generate a file (config/initializers/secret_token.rb) with a random secret used to secure session data.
to something like:
- follow official "guide":http://guides.rubyonrails.org/upgrading_ruby_on_rails.html#config-secrets-yml
- or just create secrets.yml file with such content:
production: secret_key_base:
- run rake secret and copy/paste output after secret_key_base: Otherwise you'll get DEPRECATION WARNING: You didn't set config.secret_key_base in your production.log
journals
--------------------------------------------------------------------------------
Not only wiki but also source:tags/3.0.1/doc .
--------------------------------------------------------------------------------
Note: secrets.yml should be in /config (whereas secret_token.rb was in /config/initializers)
--------------------------------------------------------------------------------
@rake generate_secret_token@ was changed to generate the config.secret_key_base, it's fine for new installs. The problem occurs when upgrading from 2.x. Additional information is added the docs in r14217.
Thanks for pointing this out.
--------------------------------------------------------------------------------
I have updated wikis.
* http://www.redmine.org/projects/redmine/wiki/RedmineInstall/243
* http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade/75
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,20292,Ignore Secrets.yml file