Actions
Defect #19185
closedUpdate Install/Upgrade guide for 3.x version and get gid of DEPRECATION WARNING: You didn't set config.secret_key_base
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Affected version:
Description
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
- 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
Related issues
Updated by Toshi MARUYAMA almost 10 years ago
- Subject changed from Update Wiki Install/Upgrade guide for 3.x version and get gid of DEPRECATION WARNING: You didn't set config.secret_key_base to Update Install/Upgrade guide for 3.x version and get gid of DEPRECATION WARNING: You didn't set config.secret_key_base
Not only wiki but also source:tags/3.0.1/doc .
Updated by Olivier Houdas over 9 years ago
Note: secrets.yml should be in /config (whereas secret_token.rb was in /config/initializers)
Updated by Jean-Philippe Lang over 9 years ago
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
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.
Updated by Toshi MARUYAMA over 9 years ago
Updated by Toshi MARUYAMA over 9 years ago
- Related to Patch #20292: Ignore Secrets.yml file added
Actions