Created
January 6, 2012 16:04
-
-
Save brianhempel/1571200 to your computer and use it in GitHub Desktop.
Easy RVM install of Ruby 1.9.2-p290 with the require performance patch
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
#!/usr/bin/env bash | |
# from http://ihswebdesign.com/knowledge-base/installing-a-patched-ruby-192-for-faster-rails-startup/ | |
echo "Downloading require performance patch from Stefan Kaes' rvm-patchsets repository..." | |
curl https://raw.github.com/skaes/rvm-patchsets/671f0e4e6487af7a252d86b59d645ee7beb849dd/patches/ruby/1.9.2/p290/railsexpress/05-load-performance-fix.patch > 1.9.2-p290_require_speedup.patch | |
echo "Installing ruby-1.9.2-p290-patched..." | |
rvm install 1.9.2-p290 --patch 1.9.2-p290_require_speedup.patch -n patched | |
echo "Setting up 1.9.2-patched alias..." | |
rvm alias create 1.9.2-patched ruby-1.9.2-p290-patched | |
echo "Type rvm 1.9.2-patched to use 1.9.2-p290 with the require performance patch!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment