pepa007 wrote:> Hi,
>
> sorry for newbie question:
>
> how do I switch between projects on command line?
>
> I know ''rails projectA'' creates projectA. but if I have
another
> projectB in another folder, how do I make this one active?
>
> Thank you
By "active", I''m assuming you mean you want to see it in the
web
browser. When you''re in a project folder and issue the script/server
command, the default port used is 3000, so you can see the app at
http://localhost:3000. You can run other apps on other ports by
specifying the -p parameter when you call script/console. So you can do
this:
~/rails_app_one/$ script/console
~/rails_app_two/$ script/console -p 3001
and you will have both apps running, one on port 3000 and the other on
port 3001. As far as everything else, just being in the right directory
determines which one is "active''.
Peace,
Phillip
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---