Skip to content

Instantly share code, notes, and snippets.

@kml
Last active December 13, 2016 22:36
Show Gist options
  • Save kml/4a7d0d93b7da18588bd8d596d74d2b73 to your computer and use it in GitHub Desktop.
Save kml/4a7d0d93b7da18588bd8d596d74d2b73 to your computer and use it in GitHub Desktop.
config/boot.rb with changed rails server defaults
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