Challenges Faced While Upgrading to Rails 7.2
Troubleshooting Ruby on Rails 7.2 Upgrade Issues
I manage multiple Ruby on Rails projects. Most of them are personal projects that I’ve created to help me manage my daily life more easily. These projects range from tiny to quite enormous.
I’m a huge proponent of keeping these projects up to date because they serve as an excellent testing ground for any type of update. Some of these applications were built on Rails 4 or 5, while others were made with Rails 7. As time passes, I will utilize a tool like https://railsdiff.org to compare the variations between Rails versions in what is generated from new apps. Typically, I implement these modifications to all of my applications during the upgrading process.
My deployment method varies based on the application, but there are certain common themes across all of them. In the “production” environment, all of the applications use Docker containers. Additionally, all of the applications are hosted on x86/AMD64 servers. The difference between the applications is that the newer ones use Kamal to deploy, whereas the older ones use Portainer, which provides a webhook that may be triggered to restart the container. I prefer the Kamal route, but I haven’t updated all my applications yet.