Question
How to set up Cron to trigger a Rake?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×Hi Adrian, I know this is an old post, but i’m facing the same issue. What do you mean by “changing my RAILS_ENV”?
Here is my crontab file:
* * * * * cd /home/openproject/openproject-ce && /home/openproject/openproject-ce/bin/rake RAILS_ENV=production bundle exec jobs:workoff