I can't get cron (specifically elysia cron) to run with Drush. I've been using this as a guide. What have I missed/done wrong?
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COLUMNS=80 */5 * * * * /usr/bin/drush @main elysia-cron * * * * * env > /tmp/cronenv.log
- I've used www-data for my crontab. This is the default nginx server user.
- The path to drush (
/usr/bin/drush), comes from
- I've used an alias for the site, @main. I've tested this outside of cron and the command
drush @main elysia-cronruns cron, although only once an hour (see this problem). This cron runs every five minutes so it should work once an hour.
I also tried the format in the docs above:
*/5 * * * * /usr/bin/env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COLUMNS=80 /usr/bin/drush @main elysia-cron