Level 11
To clarify, CRON on aws isn't different than any other server. (It's something you can add to the server, but isn't offered as a AWS specific service, - altho you can approximate it with some of their offerings)
On most server types, you can:
- Add an entry to
/etc/crontab - Add a crontab-stye file to
/etc/cron.d - Add an executable script to one of
/etc/cron.daily,cron.hourly,cron.monthly,cron.weekly - Use
crontab -eto edit a cron that's specific to your currently logged in user (or other users if you can use sudo, e.g.sudo crontab -u someuser -e
Then you can add an entry to run the scheduler, something like this (taken from the docs)
* * * * * php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1
3 likes