From 9710347d1f0cfbda637a175b433fadfcf153bed1 Mon Sep 17 00:00:00 2001 From: Rick Jones Date: Fri, 10 Sep 2021 12:23:53 +0100 Subject: [PATCH] Fix Docker logs for different Rails envs --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 66c2f687db..d788671625 100644 --- a/Dockerfile +++ b/Dockerfile @@ -168,11 +168,11 @@ RUN chown -hR appuser:appgroup ${APP_HOME}/log RUN chown -hR appuser:appgroup ${APP_HOME}/app RUN chown -hR appuser:appgroup ${APP_HOME}/tmp -RUN touch ${APP_HOME}/log/production.log +RUN touch ${APP_HOME}/log/${RAILS_ENV}.log -RUN chown -hR appuser:appgroup ${APP_HOME}/log/production.log +RUN chown -hR appuser:appgroup ${APP_HOME}/log/${RAILS_ENV}.log -RUN chmod 777 ${APP_HOME}/log/production.log +RUN chmod 777 ${APP_HOME}/log/${RAILS_ENV}.log USER appuser @@ -215,10 +215,10 @@ RUN chown -hR appuser:appgroup ${APP_HOME}/log RUN chown -hR appuser:appgroup ${APP_HOME}/app RUN chown -hR appuser:appgroup ${APP_HOME}/tmp -RUN touch ${APP_HOME}/log/production.log +RUN touch ${APP_HOME}/log/${RAILS_ENV}.log -RUN chown -hR appuser:appgroup ${APP_HOME}/log/production.log +RUN chown -hR appuser:appgroup ${APP_HOME}/log/${RAILS_ENV}.log -RUN chmod 777 ${APP_HOME}/log/production.log +RUN chmod 777 ${APP_HOME}/log/${RAILS_ENV}.log USER appuser