40

Move Ruby on Rails apps to GKE to discover the treasures of cloud

 5 years ago
source link: https://chinagdg.org/2019/04/move-ruby-on-rails-apps-to-gke-to-discover-the-treasures-of-cloud/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Move Ruby on Rails apps to GKE to discover the treasures of cloud

2019-04-24adminGoogleCloudNo comments

Source: Move Ruby on Rails apps to GKE to discover the treasures of cloud from Google Cloud

Ruby on Rails won developers’ hearts by providing a platform for rapidly building database-backed web apps. Google Kubernetes Engine (GKE) takes the pain out of deploying and managing Kubernetes clusters, and provides a great on-ramp to the benefits of containers.   However, learning how to package and deploy Ruby applications on GKE can be challenging, particularly when migrating existing production applications and their data

The new Migrating Ruby on Rails apps on Heroku to GKE tutorial takes you through migrating a sample Ruby on Rails application hosted on Heroku to GKE step by step, explaining Kubernetes concepts along the way. You learn how to convert Heroku dynos to GKE nodes, migrate a Heroku Postgres database to Cloud SQL for PostgreSQL, package and test your Ruby on Rails app as a Docker container, deploy this container on GKE and finally scale it to meet your capacity needs. The resulting environment (shown in the diagram below) is replicated across multiple zones for high availability, making it suitable for production use.

Ruby on Rails.png

Much of the tutorial’s advice applies to migrating Ruby apps from any environment to GKE.  There are also tips for overcoming common issues during database migrations and troubleshooting issues with containerized applications.

Learn more about the many ways to run Ruby on Rails on Google Cloud Platform, and try migrating a Rails app to GKE today.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK