Skip to content
Snippets Groups Projects
Commit cf422f28 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch '936-attach-error-log-to-stdout-instead-of-the-access-log' into 'development'

Resolve "Attach error log to stdout instead of the access log"

Closes #936

See merge request !1514
parents 646bfbd9 fe197ada
No related branches found
No related tags found
2 merge requests!1515Development,!1514Resolve "Attach error log to stdout instead of the access log"
......@@ -24,6 +24,8 @@ RUN sed -i 's/listen.owner = www-data/listen.owner = nginx/g' /etc/php/7.3/fpm/p
sed -i 's/user = www-data/user = nginx/g' /etc/php/7.3/fpm/pool.d/www.conf && \
sed -i 's/group = www-data/group = nginx/g' /etc/php/7.3/fpm/pool.d/www.conf && \
sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php/7.3/fpm/php.ini && \
rm /var/log/nginx/access.log && ln -s /dev/null /var/log/nginx/access.log && \
rm /var/log/nginx/error.log && ln -s /dev/stdout /var/log/nginx/error.log && \
mkdir /html
# Set correct timezone
......@@ -39,6 +41,8 @@ COPY config/nginx.conf /etc/nginx/nginx.conf
COPY config/nginx-default.conf /etc/nginx/conf.d/default.conf
COPY --chown=root:nginx . /html
RUN ln -s /dev/stdout /html/storage/logs/laravel.log
CMD chown -R root:nginx storage/logs/metager bootstrap/cache && \
chmod -R g+w storage/logs/metager bootstrap/cache && \
/etc/init.d/cron start && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment