I want to upgrade the rails 4 app to rails 6 latest version. To do so, should I upgrade directly from 4 to 6 or have to do step by step ?
First Rails 4 to Rails 5, then 5.0 to 5.2, then 5.2 to 6.0, then 6.0 to latest version ?
Current Rails version - 4.2, Ruby - 2.3.6
And what version is best suitable for Rails 5.0 & Rails 5.2 ?
For Rails 5.0 and 5.2, you could go for Ruby 2.7 or 3.0 version.
If you want to upgrade your rails app from rails 4 to rails 6, then I would suggest you to create a new rails 6 app and migrate all your files. Because in Rails 6 there are a lot of new changes like webpacker, new Javascript file structure etc.
Related
I was using the vtiger 5.4 and gradually upgraded to 6.5. Now when I tried to upgrade to vtiger 7, its showing the blank page. My version is not matching with the pre-requisites.
What I have the versions are as below:
PHP Version:
C:\vtigercrm-5.4.0\php>php -v
PHP 5.2.6 (cli) (built: May 2 2008 18:02:07)
mysql> select version();
+----------------------+
| version() |
+----------------------+
| 5.0.51b-community-nt |
+----------------------+
Apache Version:
C:\vtigercrm-5.4.0\apache\bin>Apache -v
Server version: Apache/2.0.52
How can I upgrade this to the next level, so that I can continue the Vtiger 7 migration?
If you have no custom code of your own, I would suggest the following steps -
Backup your code and database for 6.5
Uninstall your vtiger 5.4 version
Install XAMPP with PHP7.1 support. Moving away from the standard vtiger installer will let you upgrade to future versions of PHP/apache without this hassle.
Import your database to this new XAMPP and setup the code (you will need to change the config.inc.php)
If everything goes fine, you should have your 6.5 version back working normally and you should be able to upgrade to vtiger 7.
Some pointers -
The new XAMPP installation will have different PHP/mysql settings
Check the Mysql UTF-8 support when creating db
Don't panic if you see lot of notice/warnings, it just means your php.ini is not configured properly yet
I want to upgrade my local gem to rails 5 to create a new rails 5 application. However I have some old rails 4 applications that I don't really want to spend time in upgrading them to rails 5.
will I be able to run these projects if I upgrade to rails 5 ?
Yes. I tried it and found out that it works just fine
I'm in the process of upgrading our app from Rails 4.1 to Rails 4.2 and I'm running into an issue with the whodunnit field.
In Rails 4.1 the whodunnit field ends up as a YAML string, while under Rails 4.2, it is a text representation of a hash. I'm using PaperTrail 5.1.1.
Rails 4.1
[1] pry(#<RSpec::ExampleGroups::xxx::xx>x)> assigns(:session).versions.last.whodunnit
=> "---\n:admin_id: 5\n"
Rails 4.2
[4] pry(#<RSpec::ExampleGroups::xxx::xxx>)> assigns(:session).versions.last.whodunnit
=> "{:admin_id=>1}"
Does anybody have any idea why this change might have happened and if it's consequential.
I'm learning Rails and I beginning to read the ebook Agile Web Development with Rails 4 and I have installed and configured in my Mac Os X the rails 4.0.2 and I see in the book who recommends to install the version 4.0.0.
I think the version 4.0.2 is better and I want to do all the ebook with this version but I have fear if I'll have problems because of this?
Is it OK if I'm continuing the ebook with the version 4.0.2, or should I install the 4.0.0?
The differences between version 4.0.0 and 4.0.2 will be minimal.
I wouldn't worry about it.
Edit: added 4.0.x release notes
Rails 4.0 Release History
Rails 4.0.2 was released December 3, 2013 with security fixes. See Rails 3.2.16 and 4.0.2 have been released!.
Rails 4.0.1 was released November 1, 2013 with performance gains and many bug fixes. See Rails 4.0.1 has been released!.
Rails 4.0.0 was released June 25, 2013. See Rails 4.0: Final version released!.
I'm trying to buld wso2carbon 4.1 from source.
I can only find instructions for older versions of carbon.
To build from source, do I need to use maven 2, or 3?
You have to use Maven3. In WSO2 Carbon 4, we moved from maven 2 to 3.