Skip to content

Instantly share code, notes, and snippets.

View gist:4061570
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
@maxmmurphy
maxmmurphy / deploy.rb
Created Apr 23, 2012
unicorn, rvm and capistrano
View deploy.rb
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
View gist:654045
##################
# 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'