crontab
Recipe for adding crontab jobs.
It checks for duplicates by the command part of the job. Changing the schedule will update the crontab. So when you change the command part you have to manually remove the old one. Use crontab -e
on the server to remove it.
Configuration
- crontab:jobs - An array of strings with crontab lines.
Usage
require 'contrib/crontab.php';
after('deploy:success', 'crontab:sync');
add('crontab:jobs', [
'* * * * * cd {{current_path}} && {{bin/php}} artisan schedule:run >> /dev/null 2>&1',
]);
Configuration
bin/crontab
Get path to bin
Tasks
crontab:load
Loads crontab.
crontab:sync
Sync crontab jobs.
Support Deployer ❤️
Hello, my name is Anton Medvedev (@antonmedv). I'm the creator of the Deployer.
I maintain this open source project in my spare time.
Supporters on GitHub give me extra motivation to work on the project.