Answers for "how to change rails server port"

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 "how to change rails server port"

Browse Popular Code Answers by Language