Answers for "rails server other 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

Browse Popular Code Answers by Language