Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rake jobs don't run in some environments #10

Closed
github opened this issue Jun 15, 2009 · 5 comments
Closed

Rake jobs don't run in some environments #10

github opened this issue Jun 15, 2009 · 5 comments

Comments

@github
Copy link

github commented Jun 15, 2009

At least in hostingrails.com rake cron jobs wont run cause "rake" command needs to be run with full path /usr/bin/rake, It would be nice to add a conf like :rake_path to be appended.

@tamoyal
Copy link

tamoyal commented Jun 16, 2009

I have run into the same problem. I am trying this instead right now:
every 10.minutes do
command "rake util:update_myspace_shows"
end

@github
Copy link
Author

github commented Jun 16, 2009

Yeah I did the same, change it to a command instead of rake runner

@javan
Copy link
Owner

javan commented Jun 17, 2009

You might also try adding '/usr/bin' to your PATH in your schedule.rb file. Something like:

env :PATH, '/usr/bin:$PATH'

Although you may need to add more paths than just the one.

@github
Copy link
Author

github commented Jun 17, 2009

That should do the trick too, you can close the ticket if you like

@skalee
Copy link

skalee commented Sep 15, 2010

You can also redefine job_type :rake to use your path instead of /usr/bin/env rake.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants