Created
April 22, 2013 13:54
-
-
Save RushOnline/5435302 to your computer and use it in GitHub Desktop.
Change default host:port bindings for rails app. Add the following lines to the file config/boot.rb
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
# add following to file config/boot.rb to change default host:port bindings | |
require 'rails/commands/server' | |
module Rails | |
class Server | |
alias :default_options_alias :default_options | |
def default_options | |
default_options_alias.merge!(Host: '127.0.0.1', Port: 3333) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment