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:
parent
9835070940
commit
20e33fbfd9
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue