Skip to content

Latest commit

 

History

History
69 lines (55 loc) · 2.84 KB

migration-to-newer-ruby.md

File metadata and controls

69 lines (55 loc) · 2.84 KB

#Migrate to Ruby 1.9.2

This page outlines how to migrate an application to Ruby 1.9.2.

This page assumes that you have a pre-Ruby 1.9.2 application running on Engine Yard Cloud.

You can do the migration yourself as outlined below, or you can ask [[Engine Yard Professional Services|http://www.engineyard.com/services]] to do the migration for you.

##Why migrate to Ruby 1.9.2?

Ruby 1.9 is a version of MRI which brings substantial performance improvements. Engine Yard's version of Ruby 1.9 also has garbage collection enabled, which allows customization for your specific requirements.

Note: You can also follow the procedure below to upgrade from Ruby 1.8.6 to 1.8.7. (Ruby 1.8.7 is recommended over 1.8.6; it is more stable and has better performance.)

To migrate to Ruby 1.9.2

1. Run your application locally: a. If you use unix or Mac OS X, update your local environment to 1.9.2 using the instructions here: [[beginrescueend.com|http://beginrescueend.com/rvm/install/]]. b. If you use Windows, update your local environment to 1.9.2 using the instructions here: [[railsinstaller.org|http://railsinstaller.org/]]. b. Reinstall the gems required for application. c. Test the application in your local environment; make fixes if needed. 4. Run your application in a staging environment: a. Clone a staging environment and edit the Runtime to Ruby 1.9.2. (Alternatively, create a new staging environment.) c. Deploy the application to the staging environment. d. Test the application in the staging environment; make fixes if needed. 7. Run your application in a production environment: a. Clone a production environment and edit the Runtime to Ruby 1.9.2. (Alternatively, create a new production environment.) b. Deploy the application to the staging environment.

Troubleshooting tip

SymptomSolution
Bundle install and gem errors after upgrading an application to Ruby 1.9.2. This can be caused by Ruby 1.8 gems not being updated.
  1. Remove the bundled_gems directory:
    rm -rf /data/myapp/shared/bundled_gems
  2. Re-deploy the "myapp" application.

More information

For more information about...See...
Cloning an environment[[Clone an environment|environment-clone]]
Creating an environment[[Create an environment|environment-create]]
Deploying an application[[Deploying your application|deployment-intro]]