.rvm/bin/rvm-shell: No such file or directory error


When trying to set up the capistrano deploy recipe to deploy to the vagrant virtual box as described in ‘Deploying rails’, you get the error:

when you have installed rvm system wide on the virtual box.


Make sure that you add the following into your deploy.rb file to set up the path for rvm:

Solution taken from here