Capistrano error - RAILS_GEM_VERSION
I cannot figure it out. Capistrano keeps giving me this error:
** [out :: myserver.net] Missing the Rails 2.1.1 gem. Please `gem install -v=2.1.1 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.
So, just like the good error message post, I checked the file config/environments.rb
and saw that it was indeed indeed set toRAILS
_
GEM _
VERSION
RAILS_GEM_VERSION = '2.1.1' unless defined? RAILS_GEM_VERSION
I changed it to "2.1.2" since this is what I have on my server and tried to guess again: same error.
So, I updated Rails on my development machine (2.1.1 -> 2.1.2) and tried again: same error.
I tried commenting out the line: same error.
Finally, I logged into my server, deleted everything in my project directory (deleting all cached copies config/environments.rb
, I hoped), and tried again. The same mistake.
What's happening?!
source to share