We update redmine from 2.4 to 2.6

Making a backup copy of redmine and mysql database

[[email protected]]# tar -cvzf /tmp/$(date +%y%m%d)_redmine_backup.tar.gz /var/www/vhosts/redmine
[[email protected]]# mysqldump -u redmine -predmine redmine > /tmp/$(date +%y%m%d)_redmine_backup.sql

Clean up the directory (/ var / www / html / redmine)

[[email protected]]# rm -rf /var/www/html/redmine/*

Downloading the release

[[email protected]]# wget http://www.redmine.org/releases/redmine-2.6.3.zip


[[email protected]]# unzip redmine-2.6.3.zip

and transfer the files to the desired directory (/ var / www / html / redmine)

Install gems

[[email protected]]# bundle install --without development test

Run the following command from your new Redmine root directory:

[[email protected]]# bundle exec rake generate_secret_token

VERY IMPORTANT: Do not write data in config / settings.yml

Copy and rename the database connection settings file

[[email protected]]# cp database.yml.example database.yml

Correct the settings for connecting to the base

[[email protected]]# nano database.yml

Updating the base

[[email protected]]# bundle exec rake db:migrate RAILS_ENV=production

Install plugins

[[email protected]]# bundle exec rake redmine:plugins:migrate RAILS_ENV=production

We clean the cache, sessions

[[email protected]]# bundle exec rake tmp:cache:clear tmp:sessions:clear RAILS_ENV=production