sarahsemark/suitor — pull request #154 by sarahsemark (2014-11-30 07:23:35+00:00)
Title: WIP: Deploy

This branch is my continued attempt to make deploys play nicely, but I'm stopping work now in favour of "not going totally batshit."

Here's where I'm at right now:

This branch updates Capistrano to the most recent version and finally allows me to include rvm/bundler/migrations and all that jazz. This may or may not fix #140 finally, although I haven't tested it yet.

At this stage, deploys are completely broken because rvm can't seem to locate bundler:

cd /home/deploy/suitor/releases/20141130070347 && /usr/local/rvm/bin/rvm default do bundle install --binstubs /home/deploy/suitor/shared/bin --path /home/deploy/suitor/shared/bundle --without development test --deployment --quiet

/usr/local/rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
cannot load such file -- bundler (LoadError)
from /usr/local/rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/bin/bundle:7:in `

'

Seems to be a very similar issue to this: https://github.com/capistrano/rvm/issues/12 or this: https://github.com/mpapis/rubygems-bundler/issues/40

`bundle install` works fine, but /usr/local/rvm/bin/rvm default do bundle install has a panic attack. Seems like it might be a path error?

I'll come back to this later, so these are just basically my notes for when I pick it back up again. Eventually I'll get the damned thing working!