Redirect log/production.log to /dev/stdout in Docker setup

This commit is contained in:
Patrick Gansterer 2017-08-08 23:17:04 +02:00
parent 5bc9becf9a
commit 3010dd2d90
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ RUN buildDeps='libmagic-dev' && \
rm -rf /var/lib/apt/lists/* && \
bundle install --deployment --without development test && \
apt-get purge -y --auto-remove $buildDeps && \
mkdir -p log && \
ln -sfn /dev/stdout log/production.log && \
whenever --update-crontab
# Add a temporary mysql-server for assets precompilation