Last Updated: May 31, 2016
·
858
· juancho

start rails server 0.0.0.0 vagrant

Append this to boot.rb

require 'rails/commands/server'

module DefaultOptions
  def default_options
    super.merge!(Host: '0.0.0.0')
  end
end

Rails::Server.send(:prepend, DefaultOptions)