diff --git a/workspace/Dockerfile b/workspace/Dockerfile index c64ac77..8167c99 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 0000000..c807cf4 --- /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 db972b1..0000000 --- a/workspace/crontab/root +++ /dev/null @@ -1 +0,0 @@ -* * * * * php /var/www/artisan schedule:run >> /dev/null 2>&1