Project

General

Profile

Migration from 1.2.1 to 2.x

Added by Babbo Maria about 11 years ago

Hi

We have a redmine version ported to 1.2.1 on mysql (NO plugins)


ususally the step to update are:
  • 0
    /etc/init.d/apache2 stop
  • 1
    cd /var/www
  • 2
    mv railsapp railsappOLD
  • 3
    svn co http://redmine.rubyforge.org/svn/branches/1.2-stable railsapp
  • 4
    cp ./railsappOLD/config/database.yml ./railsapp/config/database.yml
  • 5
    cp ./railsappOLD/config/email.yml ./railsapp/config/email.yml
  • 6
    cp -r ./railsappOLD/files ./railsapp/files
  • 6B
    Here i have done some ruby stack configuration:
    • Check status
      gem list | grep -P '^(rails|i18n|rack|rake|rubygems-update) '
      remeber you need the correct stack
      i18n (0.4.2)
      rack (1.1.1, 1.1.0, 1.0.1)
      rails (2.3.11, 2.3.8)
      rake (0.8.7)
      rubygems-update (1.8.10, 1.6.2)
    • if you haven't it uprgrade following
      gem install <component> -v=1.0.1
    • if you need you can unistall using
      gem uninstall <component> -v=1.3.3
    • for every version follow those rules remember i18n and correct version
      http://www.redmine.org/projects/redmine/wiki/RedmineInstall
  • 7
    sudo chown -R root:www-data /var/www/railsapp
  • 8
    cd /var/www/railsapp
  • 9 (inside the /var/www/railsapp folder)
    sudo chown -R www-data:www-data files log tmp
  • 10 (inside the /var/www/railsapp folder)
    rake generate_session_store
  • 11 (inside the /var/www/railsapp folder)
    rake db:migrate RAILS_ENV=production
  • 12 (inside the /var/www/railsapp folder)
    sudo chown -R www-data:www-data files log tmp public/plugin_assets
  • 13 (inside the /var/www/railsapp folder)
    rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production
  • 14 (inside the /var/www/railsapp folder)
    rake db:migrate_plugins RAILS_ENV=production
    http://www.redmine.org/boards/2/topics/30094
  • 15
    sudo chmod -R 755 files log/ tmp/ public/plugin_assets
  • 16 (inside the /var/www/railsapp folder)
    rake tmp:cache:clear
  • 17 (inside the /var/www/railsapp folder)
    rake tmp:sessions:clear
  • 18
    /etc/init.d/apache2 start

Now we have a new server.

We like to install a clean new 2.2.2 redmine .... and now the question, Is it possible to port old data (1.2.1) into new redmine(2.2.2) and then make the upgrade?

If yes what do I need to port / copy ?.

And then what do I need to upgrade? and following which guide?