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.
This commit is contained in:
Jeff Wong 2024-09-30 05:46:23 -07:00 committed by GitHub
parent 9835070940
commit 20e33fbfd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -56,6 +56,7 @@ run:
# postgres # postgres
cd $home cd $home
chown -R discourse:www-data /shared/log/rails chown -R discourse:www-data /shared/log/rails
# before precompile
if [[ -z "$PRECOMPILE_ON_BOOT" ]]; then if [[ -z "$PRECOMPILE_ON_BOOT" ]]; then
PRECOMPILE_ON_BOOT=1 PRECOMPILE_ON_BOOT=1
fi fi
@ -224,7 +225,7 @@ run:
- replace: - replace:
tag: precompile tag: precompile
filename: /etc/service/unicorn/run filename: /etc/service/unicorn/run
from: PRECOMPILE_ON_BOOT=1 from: "# before precompile"
to: "PRECOMPILE_ON_BOOT=0" to: "PRECOMPILE_ON_BOOT=0"
- file: - file: