14

I want to start rails sever on port other that 3000 so that I can run two applications simultaneously on my machine. One is running on server using port 3000 and 2nd with new port.

Puja
  • 591
  • 6
  • 13

2 Answers2

22

Use the -p option:

rails server -p 3001
nesiseka
  • 1,268
  • 8
  • 22
10
rails s -p <port_number>