Project

General

Profile

which version of Rails is used...

Added by Eric Voisard almost 15 years ago

Hi All,

Could someone tell me which version of Rails is used when a Redmine installation comes from a zipped package (that I just have learns contains Rails) but there is also a system wide install of Rails?

I'm asking this because I'm trying to upgrade from 0.8.4 to 0.9.2 with a downloadable package (our server has no access to the internet => no svn) and I'm having problems with Rails-2.3.5 (huge dependencies problems!)...

Thanks, Eric


Replies (4)

RE: which version of Rails is used... - Added by Jean-Philippe Lang almost 15 years ago

The Rails version that comes with the releases is the required Rails version.
For 0.9.x, it's Rails 2.3.5. More details here: RedmineInstall.

RE: which version of Rails is used... - Added by Eric Voisard almost 15 years ago

Thanks for your reply Jean-Philippe.

Sure I've read the RedmineInstall page. I asked this because on our server, there is one Redmine 0.8.4 install which is actually in production and a second "small" one for doing tests.

I wanted to test the 0.9.2 upgrade against the second one and I first upgraded Rails to 2.3.5.
That's when I stumbled upon dependency problems because of the mysql helper not being included in Rails anymore and needing to be installed separately. As it required some compilation, I had to find a Ruby 1.8.7 development package that matched the installed Ruby (thanks to SUSE/Linux packages discrepancy) and also a development package for MySql.

All dependencies issues are solved now, but as my second install (still) doesn't work anymore, I was wondering how it was that the production install kept working while there were still these dependencies issues with Rails. I assume Rails that comes with Redmine releases (Rails 2.1.2 in Redmine 0.8.4 case) takes precedence...

regards, Eric

RE: which version of Rails is used... - Added by Jeffrey Jones almost 15 years ago

All rails applications will use the version of rails in the app's /vendor/rails directory if it exists.

This takes precedence over the system-wide gem install. In fact this is true for all gems, anything in /vendor takes precedence.

RE: which version of Rails is used... - Added by Eric Voisard almost 15 years ago

Thanks for the clarification, Jeffrey.
I must say I don't know much about Ruby and Rails, and it's... special :-)

Eric

    (1-4/4)