复制boot.rb代码将在5.1之后中断
require 'rails/commands/server'
module Rails
class Server
alias :_default_options :default_options
def default_options
_default_options.merge!(Host:'0.0.0.0')
end
end
end
答案 0 :(得分:0)
这应该可以解决问题
require 'rails/command'
require 'rails/commands/server/server_command'
module Rails
class Server
alias :_default_options :default_options
def default_options
_default_options.merge!(Host:'0.0.0.0')
end
end
end