From 8933b827b377c4c8ee3eaa73def75fa5e419353d Mon Sep 17 00:00:00 2001 From: philtrep Date: Mon, 3 Oct 2016 20:27:46 -0400 Subject: [PATCH] Added laravel cronjob --- README.md | 6 ++++-- workspace/crontab/.gitkeep | 0 workspace/crontab/root | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) delete mode 100644 workspace/crontab/.gitkeep create mode 100644 workspace/crontab/root diff --git a/README.md b/README.md index 1b8db4fa..0f3b20e0 100644 --- a/README.md +++ b/README.md @@ -941,10 +941,12 @@ To controll the behavior of xDebug (in the `php-fpm` Container), you can run the ### Adding cron jobs -Add a root file containing the cron jobs in `workspace/crontab`. +You can add your cron jobs to `workspace/crontab/root` after the `php artisan` line. ``` -# workspace/crontab/root +* * * * * php /var/www/laravel/artisan schedule:run >> /dev/null 2>&1 + +# Custom cron * * * * * root echo "Every Minute" > /var/log/cron.log 2>&1 ``` diff --git a/workspace/crontab/.gitkeep b/workspace/crontab/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/workspace/crontab/root b/workspace/crontab/root new file mode 100644 index 00000000..c09ea2aa --- /dev/null +++ b/workspace/crontab/root @@ -0,0 +1 @@ +* * * * * php /var/www/laravel/artisan schedule:run >> /dev/null 2>&1 \ No newline at end of file