From 721e04370fef8ad76418d45f510bb01143b3cc6b Mon Sep 17 00:00:00 2001 From: TJ Date: Tue, 10 Jan 2017 16:34:55 -0500 Subject: [PATCH] Updated Crontab for Workspace (#538) - Crontab now gets added to `/etc/cron.d` - Base crontab now runs as the `laradock` user This update resolves #459. --- workspace/Dockerfile | 2 +- workspace/crontab/laradock | 1 + workspace/crontab/root | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 workspace/crontab/laradock delete mode 100644 workspace/crontab/root diff --git a/workspace/Dockerfile b/workspace/Dockerfile index c64ac773..8167c998 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -79,7 +79,7 @@ RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \ ##################################### USER root -COPY ./crontab /var/spool/cron/crontabs +COPY ./crontab /etc/cron.d ##################################### # xDebug: diff --git a/workspace/crontab/laradock b/workspace/crontab/laradock new file mode 100644 index 00000000..c807cf4d --- /dev/null +++ b/workspace/crontab/laradock @@ -0,0 +1 @@ +* * * * * laradock php /var/www/artisan schedule:run >> /dev/null 2>&1 diff --git a/workspace/crontab/root b/workspace/crontab/root deleted file mode 100644 index db972b14..00000000 --- a/workspace/crontab/root +++ /dev/null @@ -1 +0,0 @@ -* * * * * php /var/www/artisan schedule:run >> /dev/null 2>&1