Danny BurkesDanny Burkes
Standup 3/8/2011
edit Posted by Danny Burkes on Tuesday March 08, 2011 at 09:11AM

Interesting

RVM local/server version mismatch

A pivot noted that if you are using RVM in both your development and production environments, and you are using Capistrano for deployment, that you could encounter weird errors at deploy time like:

99: rvm_error: command not found
 ** [out :: app_user] /home/app_user/.rvm/scripts/rvm: line
121: __rvm_conditionally_add_bin_path: command not found
 ** [out :: example.com] /home/app_user/.rvm/bin/rvm-shell: line
26: rvm: command not found

These errors occur even after you follow the instructions at http://rvm.beginrescueend.com/integration/capistrano/.

The moral- make sure your RVM version numbers match in development and production.

Comments

  1. Jonathan Jonathan on March 09, 2011 at 03:26PM

    THANK YOU!!! this made my day, I have spent like 3 days just trying to figure out whats going on.. :D

  2. Ule Ule on March 21, 2011 at 04:29AM

    Thank you from here as well! Would have wasted A LOT of time without your hint... :)

  3. Wayne E. Seguin Wayne E. Seguin on March 23, 2011 at 08:37AM

    And make sure that your RVM versions are the latest everywhere in addition to making them match :)