Skip to content

Instantly share code, notes, and snippets.

@mxswd
Created December 16, 2011 02:53
Show Gist options
  • Save mxswd/1484208 to your computer and use it in GitHub Desktop.
Save mxswd/1484208 to your computer and use it in GitHub Desktop.
Ruby Without Bundler
# 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