Nanobox在Boots.rb的Rails 5.1之后突围

时间:2019-01-05 04:05:19

标签: ruby-on-rails nanoboxio

复制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

1 个答案:

答案 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