Skip to content

Commit

Permalink
Fix Docker logs for different Rails envs
Browse files Browse the repository at this point in the history
  • Loading branch information
nomasprime committed Sep 10, 2021
1 parent b01c833 commit 9710347
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit 9710347

Please sign in to comment.