Hi, I have a kind of problems with executing rake tasks as cron jobs. These problems began after upgrading to Rails 2.0.2.
So, these are the errors that I have ======================== Cannot find gem for Rails ~>2.0.2.0: Install the missing gem with 'gem install -v=2.0.2 rails', or change environment.rb to define RAILS_GEM_VERSION with your desired version. ======================== I have this setup: a bash script: ============================ [bin]# cat promote_from_queue_rake.sh #!/bin/bash cd /var/apps/myapp/current rake cron:promote_stories_from_queue RAILS_GEM_VERSION=2.0.2 ============================ This script is executed by a cron job and I get the above errors. In fact, the code in the rake task executes, however I can not figure out why that problems occure. I have Rails get 2.0.2 installed and this line in my environment.rb: RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION If someone has any ideas how to stop those errors, plese help. 10x in advance -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~----------~----~----~----~------~----~------~--~---
