hdgarrood / redmine_release_notes

A plugin to add release notes to Redmine
GNU General Public License v3.0
73 stars 46 forks source link

Simultaneous Redmine 1.x/2.x compatibility #40

Closed hdgarrood closed 11 years ago

hdgarrood commented 11 years ago

this will probably help.

hdgarrood commented 11 years ago

should do #41 first since the different locations are causing problems.

hdgarrood commented 11 years ago

I'm going to close this -- Redmine 2.x has been around for quite a while now and it would be too much effort to support 1.x as well.

mwpowellhtx commented 11 years ago

Need step by step instructions how to upgrade Redmine. Release Notes is currently our only plugin, would like to maintain the few release notes we've added, but if we end up losing those, not that big a deal. What do you suggest?

brianveltman commented 11 years ago

http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade this is the redmine upgrade guid. Although upgrading redmine is easy, but upgrading ruby and it's gems can be a pain in the ass. Do not upgrade to Ruby 1.9!

mwpowellhtx commented 11 years ago

Okay so color me a little dense. I'll scan the guide. The key is avoid Ruby 1.9; start by upgrading Ruby to 1.8 (implied Rails?). Can leave LAMP or other MySql / Apache stack in place? As far as any database mods that happened, is it seamless with what we've got for current? Or how can we back out of the current plugin and be left with an intact Redmine? Make backups of the database for sure. Perhaps backup Redmine. Please advise. Thank you...

brianveltman commented 11 years ago

Not sure if Ruby < 1.8 is supported. If it is, then dont touch ruby =) Rails should be fine if you have 3.2.x or later.

If you are upgrading Ruby to 1.8, make sure you upgrade to 1.8.7 at least! But again, if it's not needed, just don't =).

Upgrading from 1.x to 2.1.x or later requires some additional linux packages to be installed, as mentoined in the Redmine upgrade docs. Redmine 2.1.x+ uses mysql2 instead of mysql.

You don't have to change your LAMP stack. Except for a small passenger config change.

If you need any help with upgrading let me know.

hdgarrood commented 11 years ago

What's the problem with ruby 1.9? That's what I'm using and it's fine for me (ubuntu).

when you get around to updating your database (after updating the Redmine code), a simple bundle exec rake db:migrate RAILS_ENV=production will do the trick. There haven't been any DB changes in this plugin since the version you're on, so you shouldn't need to do anything else.

If you do want to remove the plugin, you should dobundle exec rake redmine:plugins:migrate NAME='redmine_release_notes' VERSION=0 RAILS_ENV=production, followed by rm -rf /path/to/plugins/redmine_release_notes and your Redmine should be back to normal after restarting it.

mwpowellhtx commented 11 years ago

I'll give it a go. Just a matter of finding/making the time. Contact me offline Brian. Thanks!

hdgarrood commented 11 years ago

Good luck :)