From 20e33fbfd98d3b8d9c57f7a111beff8aa51a5b98 Mon Sep 17 00:00:00 2001 From: Jeff Wong Date: Mon, 30 Sep 2024 05:46:23 -0700 Subject: [PATCH] DEV: force disable precompile on configure (#876) Configure option does a precompile, which should forcefully disable `PRECOMPILE_ON_BOOT` to prevent unnecessary precompile on boot when `PRECOMPILE_ON_BOOT` env is set in templates. --- 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 6222617..d5dd095 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -56,6 +56,7 @@ run: # postgres cd $home chown -R discourse:www-data /shared/log/rails + # before precompile if [[ -z "$PRECOMPILE_ON_BOOT" ]]; then PRECOMPILE_ON_BOOT=1 fi @@ -224,7 +225,7 @@ run: - replace: tag: precompile filename: /etc/service/unicorn/run - from: PRECOMPILE_ON_BOOT=1 + from: "# before precompile" to: "PRECOMPILE_ON_BOOT=0" - file: