switching between projects?

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

Just move to it ! ( cd ..\projectB ) ( kill any servers like mongrel first )

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

Phillip Koebbe wrote:

pepa007 wrote:

~/rails_app_one/$ script/console

~/rails_app_two/$ script/console -p 3001

These two lines should refer to script/server, not script/console.

Sorry.