Answers for "set the server port in rails"

0

start rails server on different port

rails s -p 5000 #or you can set your own port (> 1024)
Posted by: Guest on December-22-2020
0

rails server set default port and ip

require 'rails/commands/server'
module Rails
  class Server
    def default_options
      super.merge(Host:  '0.0.0.0', Port: 3000)
    end
  end
end
Posted by: Guest on April-11-2020

Code answers related to "set the server port in rails"

Browse Popular Code Answers by Language