Merge pull request #854 from n0mer/1.1

cron tweaks
This commit is contained in:
Graham Campbell 2015-08-02 22:02:20 +01:00
commit 46c43a8b82
3 changed files with 4 additions and 3 deletions

View File

@ -30,7 +30,7 @@ RUN sed -i -e "s/;daemonize\s*=\s*yes/daemonize = no/g" /etc/php5/fpm/php-fpm.co
EXPOSE 8000
ADD crontab /etc/cron.d/artisan-schedule
COPY crontab /etc/cron.d/artisan-schedule
RUN chmod 0644 /etc/cron.d/artisan-schedule
RUN touch /var/log/cron.log

View File

@ -1 +1,2 @@
* * * * * php /var/www/html/artisan schedule:run 1>> /dev/null 2>&1
#minute hour mday month wday who command
* * * * * www-data php /var/www/html/artisan schedule:run 1>> /dev/null 2>&1

View File

@ -25,4 +25,4 @@ command=/usr/sbin/php5-fpm -c /etc/php5/fpm
command=/usr/sbin/nginx
[program:cron]
command=/usr/sbin/cron
command=/usr/sbin/cron -f