Skip to content

Instantly share code, notes, and snippets.

@cre-o
Created September 6, 2012 09:26
Show Gist options
  • Save cre-o/3653698 to your computer and use it in GitHub Desktop.
Save cre-o/3653698 to your computer and use it in GitHub Desktop.
SpeedUp WEBrick when using with vagrant
SSH into vagrant
# If you install rvm as user
# Find your version of rubies
# Like => ~/.rvm/rubies/ruby-<version>/lib/ruby/<version>/webrick/config.rb
# for me it was ~/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/config.rb
nano ~/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/config.rb
# If you install rvm as root
nano /usr/lib/ruby/<version>/webrick/config.rb
# Navigate down using the arrow keys to the line with ":DoNotReverseLookup => nil"
Change nil to true => ":DoNotReverseLookup => true"
Save and close the file
Restart any running rails servers or launch a new one
Test :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment