Created
September 6, 2012 09:26
-
-
Save cre-o/3653698 to your computer and use it in GitHub Desktop.
SpeedUp WEBrick when using with vagrant
This file contains 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
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