Answers for "where to change default port in rails"

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 "where to change default port in rails"

Browse Popular Code Answers by Language