Skip to content

Instantly share code, notes, and snippets.

@RushOnline
Created April 22, 2013 13:54
Show Gist options
  • Save RushOnline/5435302 to your computer and use it in GitHub Desktop.
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
# 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