Can someone give me direction how to setup a cron job on EngineYard that checks the database every x minutes and performs a task on them?
Most basically, I’m not sure how to have the script access the database.
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.
One way to do this would be to first create a rake task for your application. With a rake task you automatically have access to your environment database and code structure.
Then you can schedule the task as a cron job in the Engine Yard Admin page. You find it in Dashboard > More Options > Crontabs
The command to execute a rake task is like this: