Colin Law wrote in post #970077:
> On 22 December 2010 16:31, Fritz Trapper <[email protected]> wrote:
>> Is it possible, to run both versions side by side on the same ubuntu
>> 10.04, or do I have to expect difficulties?
>
> No problem provided you use rvm
>
> Colin

Maybe 'rvm' is not a critical requirement for this (?)

I think the requirement is to have:
* either the different versions of the gems installed
* or to vendor the rails versions

Without using rvm (just the 1.8.7 system ruby of Ubuntu 10.04),
I was trivially able to run 3.0.3 and 2.3.2 (Uh) in parallel ...

pet...@asus:~/ra/apps/trials$ rails _2.3.2_ rails_2_3_x
      create
      create  app/controllers
...
pet...@asus:~/ra/apps/trials$ rails new rails_3_0_x
      create
      create  README
...
pet...@asus:~/ra/apps/trials$ ls -l | egrep 'rails_'
drwxr-xr-x 13 peterv peterv 4096 2010-12-22 22:42 rails_2_3_x
drwxr-xr-x 13 peterv peterv 4096 2010-12-22 22:43 rails_3_0_x

pet...@asus:~/ra/apps/trials$ rails_2_3_x/script/console
Loading development environment (Rails 2.3.2)
001:0> quit

pet...@asus:~/ra/apps/trials$ rails_3_0_x/script/rails c
Loading development environment (Rails 3.0.3)
001:0> quit

Running the web servers in parallel:

pet...@asus:~/ra/apps/trials$ rails_2_3_x/script/server -p 3000
=> Booting Mongrel
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
^CExiting

In a different console terminal:

pet...@asus:~/ra/apps/trials/rails_3_0_x$ rails s -p 3001
=> Booting WEBrick
=> Rails 3.0.3 application starting in development on 
http://0.0.0.0:3001
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-12-22 22:47:55] INFO  WEBrick 1.3.1
[2010-12-22 22:47:55] INFO  ruby 1.8.7 (2010-01-10) [i486-linux]
[2010-12-22 22:48:00] INFO  WEBrick::HTTPServer#start: pid=4259 
port=3001

Or did I overlook something ?

HTH,

Peter

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to