Project

General

Profile

HOWTO: upgrade from 1.2.2 to 1.3.0 (svn method)

Added by Carlos Miranda Molina almost 13 years ago

Hi all!

i wrote this mini howto for upgrade from 1.2.2 to 1.3.0, I hope that is helpful

Importante
Este Howto está disponible en español en: http://ngen.com.ar/blog/upgrade-redmine-1-2-2-1-3-0-en-debian-squeeze

Important
if you follow the Official upgrade guide with svn, when you run svn update command line, your installation is upgraded to 1.2.3 version, not to 1.3.0 don't worry

First step: Backup Backup Backup imagine Steve Ballmer evoke backup backup backup

:~# mysqldump -u <username> -p<password> <redmine_database> | gzip > /path/to/backup/redmine-database_`date +%y_%m_%d`.gz
:~# tar -cvzf /path/to/backup/redmine-files_`date +%y_%m_%d`.gz /var/lib/redmine/files

Install dependencies

As you see, i prefer uninstall previous version of rails, but you need edit config/environment.rb file and change line RAILS_GEM_VERSION = '2.3.11' to RAILS_GEM_VERSION = '2.3.14'

:~# gem install rdoc -v=2.4.2
:~# gem install rails -v=2.3.14
:~# gem uninstall rails -v=2.3.11  

SVN update

Now, run svn update

:~# cd /var/lib/redmine
:~# svn update
* 
* 
*
:~# Checked out revision 8180.

As you see, your local repository copy is updated to revision r8180, this revision is 1.2.3, but don't worry...

Update the database and plugins

:~# rake db:migrate RAILS_ENV=production
:~# rake db:migrate_plugins RAILS_ENV=production

Clean up

:~# rake tmp:cache:clear
:~# rake tmp:sessions:clear

Is done!... restart Apache and go to Administration-->Information (in you Redmine installation)... but the versión is 1.2.3 not 1.3.0

Upgrade to 1.3.0

First, you need check the svn path, and change to new url

:~# cd /var/lib/redmine
:~# svn info | grep URL:
URL: http://redmine.rubyforge.org/svn/branches/1.2-stable
:~# svn switch http://redmine.rubyforge.org/svn/branches/1.3-stable
*
*
*
*
:~# Checked out revision 8188. 

Update the database and plugins

:~# rake db:migrate RAILS_ENV=production
:~# rake db:migrate_plugins RAILS_ENV=production

Clean up

:~# rake tmp:cache:clear
:~# rake tmp:sessions:clear

Is done!... restart Apache and go to Administration-->Information (in you Redmine installation)... now, the version is 1.3.0