Dockerの修正+説明、とUNIX→JSms
このコミットが含まれているのは:
コミット
761d300e7b
|
@ -37,6 +37,12 @@ php artisan migrate:fresh --seed
|
|||
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
|
||||
```
|
||||
|
||||
|
||||
|
||||
# 仕様書
|
||||
|
|
|
@ -130,7 +130,7 @@ trait AuthenticationTrait {
|
|||
// セッションを想像する
|
||||
$login_user_datum = $this->makeSession($this->getGuard(), $get->toArray());
|
||||
|
||||
return ['status_code' => 200, 'params' => ['id' => $login_user_datum['id'], 'expire' => $expire]];
|
||||
return ['status_code' => 200, 'params' => ['id' => $login_user_datum['id'], 'expire' => (int)round(microtime($expire) * 1000)]];
|
||||
}
|
||||
|
||||
public function logout () {
|
||||
|
|
|
@ -31,8 +31,14 @@ 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
|
||||
COPY ./crontab /etc/crontab
|
||||
CMD ["cron","-f", "-l", "2"]
|
||||
#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
|
||||
|
||||
|
|
|
@ -15,9 +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 && 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 artisan schedule:run >> /dev/null 2>&1
|
||||
|
|
新しいイシューから参照