2
0
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:
Ankush Menat 2023-07-04 19:52:05 +05:30 committed by GitHub
parent 480e35c1c7
commit 036cb6291e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

View File

@ -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(

View File

@ -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})