Question : start rails server on different port
Answered by : gary
rails s -p 5000 #or you can set your own port (> 1024)
Source : https://stackoverflow.com/questions/50085299/change-localhost-port-number-in-a-rails-application | Last Update : Tue, 29 Dec 20
Question : rails server set default port and ip
Answered by : lonely-curly-boi
require 'rails/commands/server'
module Rails class Server def default_options super.merge(Host: '0.0.0.0', Port: 3000) end end
end
Source : https://stackoverflow.com/questions/28668436/how-to-change-the-default-binding-ip-of-rails-4-2-development-server | Last Update : Sat, 18 Apr 20