Skip to content

Commit 721e043

Browse files
sixlivephiltrep
authored andcommitted
Updated Crontab for Workspace (laradock#538)
- Crontab now gets added to `/etc/cron.d` - Base crontab now runs as the `laradock` user This update resolves laradock#459.
1 parent b569765 commit 721e043

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

workspace/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \
7979
#####################################
8080
USER root
8181

82-
COPY ./crontab /var/spool/cron/crontabs
82+
COPY ./crontab /etc/cron.d
8383

8484
#####################################
8585
# xDebug:

workspace/crontab/laradock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* * * * * laradock php /var/www/artisan schedule:run >> /dev/null 2>&1

workspace/crontab/root

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)