From 7b32bf815145435936f3a4a4e6196434dd3cfb16 Mon Sep 17 00:00:00 2001 From: "Jesse C. Fisher" Date: Sun, 26 Apr 2015 17:31:52 -0700 Subject: [PATCH] Set default host to 127.0.0.1 --- config/boot.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/boot.rb b/config/boot.rb index 5e5f0c1f..4ea4ef95 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -2,3 +2,12 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) + +require 'rails/commands/server' +module Rails + class Server + def default_options + super.merge(Host: '127.0.0.1', Port: 3000) + end + end +end