Browse Source

Upgrade guide for 3.x version and get gid of DEPRECATION WARNING: You didn't set config.secret_key_base (#19185).

git-svn-id: http://svn.redmine.org/redmine/trunk@14217 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.1.0
Jean-Philippe Lang 9 years ago
parent
commit
1860c43d66
2 changed files with 12 additions and 3 deletions
  1. 3
    0
      doc/INSTALL
  2. 9
    3
      doc/UPGRADING

+ 3
- 0
doc/INSTALL View File

@@ -53,6 +53,9 @@ Optional:
a secret to be generated. Under the application main directory run:
bundle exec rake generate_secret_token

Alternatively, you can store this secret in config/secrets.yml:
http://guides.rubyonrails.org/upgrading_ruby_on_rails.html#config-secrets-yml

6. Create the database structure
Under the application main directory run:

+ 9
- 3
doc/UPGRADING View File

@@ -44,10 +44,16 @@ http://www.redmine.org/

6. Generate a session store secret
Redmine stores session data in cookies by default, which requires
a secret to be generated. Under the new application directory run:
If you're upgrading from Redmine 2.x or below, remove the following file
if it exists: config/initializers/secret_token.rb

Then generate a new secret by running the following command under the
application directory:
bundle exec rake generate_secret_token

Alternatively, you can store this secret in config/secrets.yml:
http://guides.rubyonrails.org/upgrading_ruby_on_rails.html#config-secrets-yml

DO NOT REPLACE OR EDIT ANY OTHER FILES.

7. Migrate your database

Loading…
Cancel
Save