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
|
# 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:
|
||||||
|
|
Loading…
Reference in New Issue