Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 579
bdeonovic Avatar asked Feb 23 '23 08:02

bdeonovic


2 Answers

Yet it is, start them on a different port:

rails server -p 3001
like image 74
Rene van Lieshout Avatar answered Feb 28 '23 10:02

Rene van Lieshout


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
like image 37
Jesse Wolgamott Avatar answered Feb 28 '23 09:02

Jesse Wolgamott