I have a project on old framework Rails 2.3.5 & ruby 1.8.6 ,which is running on window 7 and Server mongrel.
Now i want to upgrade rails framework to rails 5 on Linux platform.
Is there any tool available for this. as manual work is too long process.
No. There is no tool to do upgrade 2.3.5 to 5. Neither can this be done in 1 step. If you don't want to rewrite from scratch or pay a 3rd party for it, assign enough time to it and start upgrading version by version.
It can be accomplished, just requires a lot of patience.
Related
I have a huge rails web application with wide user base which runs on Rails 4.2.2 and Ruby 2.2.2 as of now. I simply want to upgrade the whole application to the latest version of Ruby i.e. 2.5.0 and Rails 6.0.2.2.
The reason for upgrade being I want to integrate a completely separate React.js frontend and a separate Rails backend. Other reasons for upgradation being deprecating older version of gems and rails.
I have tried researching a lot for this. I have also tried the : https://guides.rubyonrails.org/upgrading_ruby_on_rails.html guides. But everything out there is so vague and haphazard. I havent found any clear cut method until now following which I can upgrade my rails application smoothly.
Please help.
What i would recommend you to do is to upgrade to Rails 5.x.x first and than to 6.x.x you can use those guides and follow step by step:
https://www.ombulabs.com/blog/rails/upgrades/upgrade-rails-from-4-2-to-5-0.html
https://selleo.com/blog/how-to-upgrade-to-rails-6
I would recommend a progressive update for both Ruby and Rails. I would for example start by updating Ruby from 2.2.2 to 2.3, using the Release notes as guide of what things have changed:
https://www.ruby-lang.org/en/news/2015/12/25/ruby-2-3-0-released
Once that work (which would be easy to check if you have high test coverage), I would continue with Ruby 2.4 and so on.
Ruby minor releases (for example 2.2.2 to 2.2.3) shouldn't include breakable changes, so you can just go from 2.2.2 to 2.3, 2.4, 2.5 ...
Also, note that the last version Ruby is 2.7.1 and not 2.5.0. Another good reason to update your Ruby version is that it is not maintained any more and it does not receives security fixes. 2.5.8 is in security maintenance phase, which means that it won't be maintained anymore soon. You may want to update to at least Ruby 2.6.
Regarding Rails, you can find the release notes here: https://guides.rubyonrails.org/5_0_release_notes.html (just change the number in url to get the information of a different release).
The title sums it up pretty much.
I want to do it via the console using the `bundler. There are several changes on the way rails has handled things such as the frontend. More details over here.
Will I have to rewrite frontend of my app again? Will it be enough to just update the bins and executables manually? Or run $ rails app:update to overwrite old stuff.
Well, it may have been a joke back when you originally posted this question, but Rails 6.0.0 is now a reality! Released Aug. 15, 2019. I would recommend running gem update rails as a first try, but "updating" to Rails 6 was not so easy for my Windows 10 system.
If you used railsinstaller.org to install Rails previously, you will not be able to install Rails 6 with it - or update - at the time of this writing. In order to update to Rails 6 you must be running ruby 2.4.4 or greater, but railsinstaller.org is limited to ruby 2.3 max. Check your version with ruby -v. I used this tutorial to do a fresh install of Ruby 2.6 and Rails 6 while updating gem to 3.0.
I would recommend installing everything fresh so you know where all of your dependencies are and how they work. It will also be much easier to update each individual component this way -- unless you opt to use tools like rvm, which by nature will be easier.
If you're having issues and want a fresh install of the latest Ruby and Rails, read the article I linked :) I only posted this answer because I know railsinstaller.org was recommended to a lot of people (like me) as an easy install method back when it was being maintained.
Latest version — Rails 5.1.5 released February 14, 2018 .
Rails 6 is NOT released !! And if it was the case bundler should make it clean
The post you linked is just a joke. Anyway, Rails 6 is under development (since January 30 I believe). Just wait.
https://github.com/rails/rails/blob/master/version.rb
Just run on your terminal:
gem update rails
That worked for me.
I would like to upgrade one of my application from rails -2.3.11 to 4.0.0.
Before going to do anything, I just need plan for it and my application not that
much of big size but got some 6/7 plugins and 5/6 gems.
Existed : Ruby 1.8.7 + Rails 2.3.11
Expected : Ruby 2.0.0 + Rails 4.0.0
For this, I have plan as in two ways like below,
1).Multi-step process : First need to upgrade app from rails 2.* to 3.* and then
do upgrade from rails 3.* to 4.0.0
2).Create new application from rails - 4.0.0 and rebuild old application all
features as we have already css, layouts...
I hope both strategies will take same time.
Any how, I need some inputs from you all. So please share your thoughts/comments.
Thanks in advance.
check these casts ,it will help you migrating from rails 2 to rails 3 and then from rails 3 to rails 4
they are very helpfull
http://railscasts.com/episodes/225-upgrading-to-rails-3-part-1
http://railscasts.com/episodes/226-upgrading-to-rails-3-part-2
http://railscasts.com/episodes/227-upgrading-to-rails-3-part-3
and then upgrading to rails 4
http://railscasts.com/episodes/415-upgrading-to-rails-4
First, you could upgrade your Ruby gradually to 2.1.1. Then start to upgrade your Rails app from 2 to 3, finally upgrade to 4. If you have good test coverage, you could make sure that you did not break anything. Rewrite is also an option. I recommend you read this article A Guide for Upgrading Ruby on Rails.
I'm on a Windows 7 computer, I'm the admin. I keep searching for a guide or tutorial to help, but nothing has popped up.
I installed Ruby 2.0 on my computer last night, then realized that 4.0 has come. Do I need to uninstall it for Rails to work? I'm relatively new to this and am confused. Any links to anything would surely help.
Thank you all in advance.
Ruby 2.0 is the most recent version of Ruby, a programming language. Rails 4.0 is the most recent version of Rails, a web app framework for Ruby which is actually designed with Ruby 2.0 in mind. You install Rails 4.0 just like every other version of Rails: gem install rails.
I m working on a project which was developed by another developer. Right now my job is to fix the bugs and all the necessary things. After all those things successfully done when i started to work for deployment on site5.com i got to know here that they ve not upgraded the ruby version. Still they are using ruby 1.8.7. There is a tutorial to upgrade the system to rails 3 but m not able to do that. The rails version installed on the server is 2.3.16.
When the code was given to me i bundle installed it with new version 1.9.3 and then i fixed few bugs which was a syntax error because of that syntax deprecation in 1.9.3. Now i ve asked to the client that there may be some compatibility issues if i go with the installation. Now what should i do? Should i go with the installation or suggest him some other hosting website.
since phusion 4 is stable now (allowing multiple rubies), and ruby 1.8 is considered 'legacy' by phusion developers (see their blog), doing any fixes for ruby 1.8.x seems to be a waste of time.
Changing ruby version requirements would break the application on site5, if they're really still on 1.8.x .