Fix schedules in Dockerfile
The wrong directory to run PHP in, so schedules will not run
This commit is contained in:
parent
1e735cf0e8
commit
b5713ff7b7
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ RUN cp docker/default.conf /etc/nginx/conf.d/default.conf \
|
||||||
&& cat docker/www.conf > /usr/local/etc/php-fpm.d/www.conf \
|
&& cat docker/www.conf > /usr/local/etc/php-fpm.d/www.conf \
|
||||||
&& rm /usr/local/etc/php-fpm.d/www.conf.default \
|
&& rm /usr/local/etc/php-fpm.d/www.conf.default \
|
||||||
&& cat docker/supervisord.conf > /etc/supervisord.conf \
|
&& cat docker/supervisord.conf > /etc/supervisord.conf \
|
||||||
&& echo "* * * * * /usr/bin/php /app/artisan schedule:run >> /dev/null 2>&1" >> /var/spool/cron/crontabs/root \
|
&& echo "* * * * * /usr/local/bin/php /app/artisan schedule:run >> /dev/null 2>&1" >> /var/spool/cron/crontabs/root \
|
||||||
&& sed -i s/ssl_session_cache/#ssl_session_cache/g /etc/nginx/nginx.conf \
|
&& sed -i s/ssl_session_cache/#ssl_session_cache/g /etc/nginx/nginx.conf \
|
||||||
&& mkdir -p /var/run/php /var/run/nginx
|
&& mkdir -p /var/run/php /var/run/nginx
|
||||||
|
|
||||||
|
@ -33,4 +33,4 @@ EXPOSE 80 443
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/ash", "docker/entrypoint.sh"]
|
ENTRYPOINT ["/bin/ash", "docker/entrypoint.sh"]
|
||||||
|
|
||||||
CMD [ "supervisord", "-n", "-c", "/etc/supervisord.conf" ]
|
CMD [ "supervisord", "-n", "-c", "/etc/supervisord.conf" ]
|
||||||
|
|
Loading…
Reference in a new issue