on my system:
[EMAIL PROTECTED]:~$ whereis rake
rake: /usr/bin/rake

so you need:
#!/bin/bash
cd /var/apps/myapp/current
/usr/bin/rake cron:promote_stories_from_queue RAILS_GEM_VERSION=2.0.2

if your rake is in the same place as mine.

Best of luck,
Tony

On 16/01/2008, Stanislav Bozhkov <[EMAIL PROTECTED]> wrote:
>
> Well, as a normal user, I don't have RAILS_GEM_VERSION exported and
> don't get those errors.
>
> In fact I'm passing that var as an input for the rake task:
> =============
> #!/bin/bash
> cd /var/apps/myapp/current
> rake cron:promote_stories_from_queue RAILS_GEM_VERSION=2.0.2
>
> I'll continue to experiment. However I just don't have any ideas what to
> test...
> --
> 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 rubyonrails-deployment@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to