Reading time: 1 – 2 minutes
I use Redmine to track my personal projects, and every time that I have to update I have to re-read the full upgrading page which is long and full of exceptions. So I decided to write my own reduced cookbook to solve that. FYI I’m using Ubuntu 16.04, Apache2, MySQL and Passenger for running Redmine.
Being root user run:
- backup MySQL database
- download new redmine package and unpack in /var/www
- change ‘redmine’ soft link to new folder
- copy old files and directories overwriting the new ones:
config/database.yml config/configuration.yml files/ plugins/
- locating work directory on new redmine folder, run:
bundle install --without development test bundle exec rake generate_secret_token bundle exec rake db:migrate RAILS_ENV=production bundle exec rake redmine:plugins:migrate RAILS_ENV=production bundle exec rake tmp:cache:clear tmp:sessions:clear RAILS_ENV=production
- restart apache server