Let assume that I have scaled Heroku application to 1 worker process, but how to specify that the rake task with particular name should run as a worker process?
Share
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.
Make a Procfile in your project, and put the rake task within it like so
More info here: https://devcenter.heroku.com/articles/procfile
UPDATE (April 2014):
If you want to schedule your rake task like a cron job you could use the Heroku Scheduler
Details are here: https://devcenter.heroku.com/articles/scheduler