Typically, you start the rails server using webrick or mongrel, for example
script/server
and
mongrel_rails start
respectively, which starts your server on port 3000 by default, i.e. you can access your application on localhost: 3000
To have several applications with rails running on the same computer, just start the servers by going to different application root directories on different ports, for example
script/server -p 3001
or
mongrel_rails start -p 3001
Just for information, if you want to run rails applications in different environments, then just pass the -e option when you start the server like this:
script/server -e production
or
script/server -e test_or_anyotherenv
If you do not specify the -e option, it will by default start the server in the development environment.
source share