This problem is plaguing me for hours now.
I have installed RVM to system directory and if I were to comment out in the Capfile:
load 'deploy/assets'
This runs fine and my app is deployed.
However, once I uncomment that line, capistrano will do an asset:precompile, which I need. This throws me the following error:
Could not find multi_json-1.0.4 in any of the sources
The issue appears to be bundler installing gems into a different directory under rvm while going through capistrano. Where it should install to rvm_path/gems/gemset_path/, it installs it to rvm_path/gems/gemset_path/ruby/1.9.1/, as documented here in this post: RVM, Capistrano and bundler path issues.
Has anyone else ran into this issue, and figured out a way to resolve this?
Thanks!
EDIT:
Finally found the solution to this. This link explains it: https://github.com/capistrano/capistrano/issues/81.
Basically all that needed to be done was to do a bundle install before doing asset:precompile, and it was irrelevant from the issue I raised in my question.
Just adding this in the deploy.rb helped:
before "deploy:assets:precompile", "bundle:install"