Ruby on Rails Wednesday, April 13, 2016

On 13 April 2016 at 16:39, Vince Laurent <lists@ruby-forum.com> wrote:
> I have been given task to move an app, the database, and all required
> software from an old system (going away soon) to a new one. I think I
> have all the software BUT can't get the app to 'work'. So, my question
> is what is the step to migrate a ruby on rails app?
>
> "old" server
>
> saptip:/etc# ruby -v
> ruby 1.8.7 (2008-08-11 patchlevel 72) [ia64-linux]
> saptip:/etc# rails -v
> Rails 2.3.5
> saptip:/# apache2 -v
> Server version: Apache/2.2.9 (Debian)
> Server built: Nov 14 2009 21:10:54
> saptip:/# mysql -h localhost -V
> mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (ia64) using
> readline 5.2
> saptip:/etc# uname -a
> Linux saptip 2.6.26-2-mckinley #1 SMP Thu Feb 11 11:08:30 UTC 2010 ia64
> GNU/Linux
>
> "new" server
>
> [root@s928-apsaptip etc]# rails -v
> Rails 4.2.5

Your app expects an old version of Rails (2.3.5) from 2009/10 (which
is likely now full of security holes). For the app to work you must
ensure that you have the right version of rails and all the other gems
on the new machine. Go back to the old one and check every gem that
is used and make sure you use exactly that version (and initially only
that version) on the new machine. Once it is working upgrade it to
Rails 4.

If at all possible it would be much better to upgrade to Rails 4 on
the old server, then at least you are starting with a working system.
With current rails versions the gem version problem is solved by the
use of Gemfile and Gemfile.lock. It is not safe to have an internet
facing rails app using 2.3.5

Unfortunately it will be probably be no slight task upgrading the app.
You will probably need someone experienced in Rails to do this.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLs9poqJPvE2N_1Lm3CpvcT5S1gYrHS5pDqqHaW8FuHCtg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment