If it works ok when you run directly, but not from cron, then for sure, you need to spell out the full paths of all commands: both the command run from crontab, *and* the commands inside your script. So - if you run rake inside your script, then it will need /full/path/to/rake....
Tony On 14/01/2008, Stanislav Bozhkov <[EMAIL PROTECTED]> wrote: > > Hi again, > > My crontab looks like this, now: > > RAILS_GEM_VERSION=2.0.2 > 0 * * * * mongrel /var/apps/svejo.net/bin/promote_stories_rake.sh > > The rake task executes successfully, however I continue to receive > errors on my mail. Like those: > > 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've defined RAILS_GEM_VERSION in the environment.rb configuration, so I > just don't have any ideas how too fix this. > > Any ideas and help are appreciated. > -- > Posted via http://www.ruby-forum.com/. > > > > -- Tony White --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
