mirror of
https://github.com/frappe/bench.git
synced 2025-01-08 00:04:38 +00:00
fix: don't compile python files manually. (#1469)
This commit is contained in:
parent
480e35c1c7
commit
036cb6291e
@ -33,7 +33,7 @@ from bench.utils.bench import post_upgrade, patch_sites, build_assets
|
||||
@click.option(
|
||||
"--no-compile",
|
||||
is_flag=True,
|
||||
help="If set, Python bytecode won't be compiled before restarting the processes",
|
||||
help="[DEPRECATED] This flag doesn't do anything now.",
|
||||
)
|
||||
@click.option("--force", is_flag=True, help="Forces major version upgrades")
|
||||
@click.option(
|
||||
|
@ -456,13 +456,6 @@ def update(
|
||||
if version_upgrade[0] or (not version_upgrade[0] and force):
|
||||
post_upgrade(version_upgrade[1], version_upgrade[2], bench_path=bench_path)
|
||||
|
||||
if pull and compile:
|
||||
from compileall import compile_dir
|
||||
|
||||
print("Compiling Python files...")
|
||||
apps_dir = os.path.join(bench_path, "apps")
|
||||
compile_dir(apps_dir, quiet=1, rx=re.compile(".*node_modules.*"))
|
||||
|
||||
bench.reload(web=False, supervisor=restart_supervisor, systemd=restart_systemd)
|
||||
|
||||
conf.update({"maintenance_mode": 0, "pause_scheduler": 0})
|
||||
|
Loading…
Reference in New Issue
Block a user