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