クーロン
このコミットが含まれているのは:
コミット
5f6269a40c
|
@ -39,7 +39,6 @@ php artisan storage:link
|
|||
|
||||
#### 7.crontab(スケジューラー)
|
||||
```
|
||||
echo "* * * * * cd /work && /usr/local/bin/php /work/artisan schedule:run >> /dev/null 2>&1" >> /var/spool/cron/crontabs/root
|
||||
service cron start
|
||||
```
|
||||
|
||||
|
|
|
@ -31,15 +31,6 @@ RUN docker-php-ext-configure gd --with-jpeg
|
|||
RUN docker-php-ext-install -j$(nproc) intl pdo_mysql zip bcmath gd exif
|
||||
|
||||
COPY ./php.ini /usr/local/etc/php/php.ini
|
||||
#RUN echo "* * * * * cd /work && /usr/local/bin/php artisan schedule:run >> /dev/null 2>&1" >> /var/spool/cron/crontabs/root
|
||||
#COPY ./crontab /var/spool/cron/crontabs/root
|
||||
#COPY ./crontab /etc/crontab
|
||||
#RUN service cron start
|
||||
#CMD [ "php", "artisan migrate:fresh --seed" ]
|
||||
#CMD [ "cron", "-f" ]
|
||||
#CMD ["cron"]
|
||||
#RUN cron -f -l 2
|
||||
|
||||
#RUN cd /work && composer update && npm run prod && php artisan migrate:fresh --seed
|
||||
COPY ./crontab /etc/crontab
|
||||
|
||||
WORKDIR /work
|
||||
|
|
|
@ -15,8 +15,8 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|||
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
|
||||
# | | | | |
|
||||
# * * * * * user-name command to be executed
|
||||
17 * * * * root cd / && run-parts --report /etc/cron.hourly
|
||||
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
|
||||
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
|
||||
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
|
||||
* * * * * root cd /work && /usr/local/bin/php artisan schedule:run >> /dev/null 2>&1
|
||||
17 * * * * root cd / && run-parts --report /etc/cron.hourly
|
||||
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
|
||||
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
|
||||
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
|
||||
* * * * * root cd /work && /usr/local/bin/php /work/artisan schedule:run >> /dev/null 2>&1
|
||||
|
|
新しいイシューから参照