On my development machine, I use port 10524. So I start my server this way :
rails s -p 10524
Is there a way to change the default port to 10524 so I wouldn’t have to append the port each time I start the server?
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.
First – do not edit anything in your gem path! It will influence all projects, and you will have a lot problems later…
In your project edit
script/railsthis way:The principle is simple – you are monkey-patching the server runner – so it will influence just one project.
UPDATE: Yes, I know that the there is simpler solution with bash script containing:
but this solution has a serious drawback – it is boring as hell.