Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start rails server on some other port?

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.

like image 852
Puja Avatar asked Jun 23 '15 09:06

Puja


1 Answers

Use the -p option:

rails server -p 3001
like image 195
nesiseka Avatar answered Sep 18 '22 22:09

nesiseka