このコミットが含まれているのは:
守矢諏訪子 2022-02-06 15:01:30 +09:00
コミット 5f6269a40c
3個のファイルの変更6行の追加16行の削除

ファイルの表示

@ -39,7 +39,6 @@ php artisan storage:link
#### 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