bdeonovic
bdeonovic

Reputation: 4220

Multiple rails servers

Is it possible to run several rails applications on one computer at the same time? I need to have one running, but would like to debug/test another one without having to turn off the first one.

Thanks

Upvotes: 4

Views: 1441

Answers (4)

tadman
tadman

Reputation: 211710

You have a few standard options, but the most common are Passenger for OS X and Linux, and pow for OS X.

You can also use rails server on different port numbers and leave it running in the background if you're looking for something quick and dirty.

Upvotes: 0

Dmitri
Dmitri

Reputation: 2748

Absolutely. Probably the easiest way to do it is using virtual hosts if you are using Apache.

Upvotes: 0

Jesse Wolgamott
Jesse Wolgamott

Reputation: 40277

couple of ways:

# start on port 3000
rails server

#start on 3001, get to on http://localhost:3001
rails server -p 3001

Use http://pow.cx

  1. http://server1.dev
  2. http://server2.dev

Upvotes: 3

Rene van Lieshout
Rene van Lieshout

Reputation: 372

Yet it is, start them on a different port:

rails server -p 3001

Upvotes: 5

Related Questions