I’m trying to figure out if I can run on the same server(I have an AWS running with ubuntu) a Rails 2 and a Rails 3 applications?
Is this possible? Or I’m just dreaming?
Thanks people.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, it’s possible. Ruby and RubyGems are designed to install and run different version of the same Gem on the same server and Rails it’s nothing more than a Gem.
My suggestion is to use Bundler to isolate Gem dependencies and Rails versions. It’s quite easy to do, Rails 3 uses Bundler by default. You can use Bunder with Rails 2.3 as well. The instructions are on the Bundler website.
When you deploy your project, Bundler will install the necessary dependencies and you’ll be able to run two or more projects with several different versions of Rails on the same machine.