From e1b203f209902a599851d5666e0933b00c9a25cd Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 30 Oct 2017 11:58:59 +0800 Subject: [PATCH] FIX: Ensure that log files exists in mounted directory. --- templates/web.template.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/web.template.yml b/templates/web.template.yml index 8bfe6da..4e2f2f5 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -62,7 +62,7 @@ run: # find DISCOURSE_ env vars, strip the leader, lowercase the key /usr/local/bin/ruby -e 'ENV.each{|k,v| puts "#{$1.downcase} = #{v}" if k =~ /^DISCOURSE_(.*)/}' > $conf - + - file: path: /etc/runit/1.d/enable-brotli chmod: "+x" @@ -264,6 +264,7 @@ run: fi if [[ ! -d /shared/log/rails ]]; then mkdir -p /shared/log/rails + touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr}.log chown -R discourse:www-data /shared/log/rails fi if [[ ! -d /shared/uploads ]]; then -- 2.25.1