Skip to content

Instantly share code, notes, and snippets.

##################
# Original issue #
##################
[11:05] > bundle exec rake spec
(in [snip])
/Users/max/.rvm/rubies/jruby-1.5.3/bin/jruby -S bundle exec rspec [snip]
/Users/max/.rvm/rubies/jruby-1.5.3/lib/ruby/site_ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem bundler (>= 0) (Gem::LoadError)
from /Users/max/.rvm/rubies/jruby-1.5.3/lib/ruby/site_ruby/1.8/rubygems.rb:211:in `activate'
@maxmmurphy
maxmmurphy / deploy.rb
Created April 23, 2012 20:18
unicorn, rvm and capistrano
require "rvm/capistrano" # Load RVM's capistrano plugin.
require "bundler/capistrano"
set :server, :unicorn
set :unicorn_remote_config, "#{shared_path}/config/unicorn.rb"
set :unicorn_pid, "#{shared_path}/pids/unicorn.pid"
set :rvm_bin_path, "/usr/local/rvm/bin"
set :rvm_type, :system
source 'http://rubygems.org'
source 'http://torquebox.org/2x/builds/1254/gem-repo'
gem 'rails', github: 'rails/rails'
platform :jruby do
gem 'jruby-openssl'
# these three gems live in the same repo, so have have to vendor the
# an activerecord_4.0 checkout of activerecord-jdbc-adapter until the gems are
# updated for ActiveRecord 4.0