Created
December 16, 2011 02:53
-
-
Save mxswd/1484208 to your computer and use it in GitHub Desktop.
Ruby Without Bundler
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
# Run this on dev machine, to download the .gem files to install. | |
# Spec the gems in the Gemfile and `bundle install` first. | |
task :bundle do | |
sh "bundle package" | |
end | |
# Run this on deploy location, to install and compile the | |
# .gem files with native extensions. | |
task :bundle_go do | |
sh "gem install --no-ri --no-rdoc --install-dir vendor/ vendor/cache/*.gem" | |
end | |
# Example of using these gems without bundler. | |
task :default do | |
ENV["GEM_PATH"] = './vendor/' | |
ENV["GEM_HOME"] = './vendor/' | |
require 'sinatra' | |
puts "done" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment