Forum: Ruby on Rails call_rake results in sh: /opt/local/bin/rake: No such file or directory

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2808b5c359edcb77ec783e3793c8d381?d=identicon&s=25 Rafael (Guest)
on 2008-12-02 00:02
(Received via mailing list)
Hi

On my Linux Production Box, a Background Process results in following
error:

(rdb:5) call_rake(:send_mailing, {:mailing_id => params
[:id].to_i, :rails_env => Rails.env})
sh: /opt/local/bin/rake: No such file or directory

The strange thing is, that actually the path is set correctly.

-bash-3.1# sh
sh-3.1# which rake
/usr/bin/rake
sh-3.1# bash
bash-3.1# which rake
/usr/bin/rake

Does anybody has a clue, why / where I have to set this path, so that /
usr/bin/rake is taken as a valid path?
Thank you very much!

regards

Rafael
2808b5c359edcb77ec783e3793c8d381?d=identicon&s=25 Rafael (Guest)
on 2008-12-02 00:05
(Received via mailing list)
Ohhh... I am so sorry... just found out myself!
It was set manually by me in application.rb ;-)

one should remember, what has been coded :-D

thanks anyway

Rafael
This topic is locked and can not be replied to.