If I specify port number separately the specified port number working.
rails s -p 3005
now its working with localhost:3005
But when i use – rails s – it running as localhost:3000.
why ruby-on-rails choosing default port is 3000.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It really doesn’t matter which port (as long as it’s above 1024 (those below are privileged ports and you must be root to use them).
If you don’t like port 3000 you can change it
How to change Rails 3 server default port in develoment?