# Can Rails 1.1.6 and 1.2 coexist on the same server?

**URL:** <https://www.ruby-forum.com/t/can-rails-1-1-6-and-1-2-coexist-on-the-same-server/92184>\
**Category:** Rails\
**Created:** [April 16, 2007, 11:06pm UTC](https://www.ruby-forum.com/t/can-rails-1-1-6-and-1-2-coexist-on-the-same-server/92184 "2007-04-16T23:06:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Long](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e47774/32.png) [@Long](https://www.ruby-forum.com/u/Long)\
**Post date:** [April 16, 2007, 11:06pm UTC](https://www.ruby-forum.com/t/can-rails-1-1-6-and-1-2-coexist-on-the-same-server/92184/1 "2007-04-16T23:06:43Z")

</div>

So I am still on Rails 1.1.6 but want to start planning for migration to  
1.2.  
Before I go and install 1.2 over my 1.1.6 environment I want to make  
sure  
things will not get messed up.

It seems like I can select a Rails version by specifying the  
RAILS\_GEM\_VERSION.  
Knowing Rails it is probably that simple but I just want to get  
confirmation that  
is indeed the case.

TIA

– Long  
[http://MeandmyCity.com/](http://MeandmyCity.com/) - Find your way  
[http://edgesoft.ca/blog/read/2](http://edgesoft.ca/blog/read/2) - No-Cookie Session Support plugin

---

<div class="post-metadata">

**Author:** ![Long](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e47774/32.png) [@Long](https://www.ruby-forum.com/u/Long)\
**Post date:** [April 16, 2007, 11:15pm UTC](https://www.ruby-forum.com/t/can-rails-1-1-6-and-1-2-coexist-on-the-same-server/92184/2 "2007-04-16T23:15:45Z")

</div>

On 4/16/07, Long [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> confirmation that  
> is indeed the case.
> 
> TIA
> 
> – Long  
> [http://MeandmyCity.com/](http://MeandmyCity.com/) - Find your way  
> [http://edgesoft.ca/blog/read/2](http://edgesoft.ca/blog/read/2) - No-Cookie Session Support plugin

IMO, this should be Rule #1 of Rails deployment basically everywhere:

rake rails:freeze:gems

I _always_ have Rails installed into my vendor directory so I never have  
to  
worry about this kind of problem. Then it’s very easy to have multiple  
rails  
sites running with differing versions.

Jason

---

<div class="post-metadata">

**Author:** ![Long](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e47774/32.png) [@Long](https://www.ruby-forum.com/u/Long)\
**Post date:** [April 17, 2007, 1:57pm UTC](https://www.ruby-forum.com/t/can-rails-1-1-6-and-1-2-coexist-on-the-same-server/92184/3 "2007-04-17T13:57:02Z")

</div>

Well, more like for each rails site, freeze the gems at the proper  
version (  
1.1.6 it sounds like). Then, on your development box, freeze the 1.2  
gems to  
the site and work on porting. Then you just drop the new site in place,  
complete with 1.2 and you know it works.

Jason

---

<div class="post-metadata">

**Author:** ![Long](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e47774/32.png) [@Long](https://www.ruby-forum.com/u/Long)\
**Post date:** [April 17, 2007, 2:03am UTC](https://www.ruby-forum.com/t/can-rails-1-1-6-and-1-2-coexist-on-the-same-server/92184/4 "2007-04-17T02:03:00Z")

</div>

Jason R. wrote:

> > Knowing Rails it is probably that simple but I just want to get  
> > IMO, this should be Rule #1 of Rails deployment basically everywhere:
> 
> rake rails:freeze:gems
> 
> I _always_ have Rails installed into my vendor directory so I never have to  
> worry about this kind of problem. Then it’s very easy to have multiple rails  
> sites running with differing versions.

So basically freeze gems for version 1.1.6 then install version 1.2 …

Thanks,

– Long
