Last active
December 13, 2016 22:36
-
-
Save kml/4a7d0d93b7da18588bd8d596d74d2b73 to your computer and use it in GitHub Desktop.
config/boot.rb with changed rails server defaults
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | |
require 'bundler/setup' | |
require "rails/commands/server" | |
Rails::Server.class_eval do | |
def default_options | |
super.merge(Port: 3000, Host: "127.0.0.1") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment