I’m trying to get some cron jobs going through Dreamost using their panel. I’m also using rake to execute these jobs
My rake files are located in
app/lib/tasks/example.rake
But I don’t know what code to give the panel to execute them
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
My recommendation would be to avoid trying to do that in the first place.
Editing cron jobs manually is a pain in the ass, and rails has some nice utilities to avoid it.
There’s a railscast on using the wheneverize gem to prvent these problems.
http://asciicasts.com/episodes/164-cron-in-ruby
If you want these cron jobs to be automatically updated every time you deploy to dreamhost, just put it in as part of your Capistrano deploy.rb
If you’re not using Capistrano, I strongly recommend you look into:
http://www.capify.org/index.php/Capistrano
EDIT
If you do want to take the DH cron route, the following should work