Hey @Brad, you’re guide on using Crontab with Supercronic was helpful to get started. I’ve got the “hello world!” example up and running on v2 of fly.
I thought the following would run the rake task scrape:test
every 5 minutes:
*/5 * * * * /bin/bash -l -c "cd /app && RAILS_ENV=production bin/bundle exec rake scrape:test"
But I get the following error:
level=info msg="/usr/bin/env: ‘ruby’: No such file or directory" channel=stderr iteration=2 job.command="/bin/bash -l -c \"cd /app && RAILS_ENV=production bin/bundle exec rake scrape:test\"" job.position=1 job.schedule="*/5 * * * *"
level=error msg="error running command: exit status 127" iteration=2 job.command="/bin/bash -l -c \"cd /app && RAILS_ENV=production bin/bundle exec rake scrape:test\"" job.position=1 job.schedule="*/5 * * * *"
Any ideas how I would run a rake task?