diff --git a/.cspell.json b/.cspell.json index ea76f2c3ff..57adbab5e5 100644 --- a/.cspell.json +++ b/.cspell.json @@ -14,7 +14,7 @@ "requirements.txt", "press/utils/country_timezone.py" ], - "words": [ + "words": [ "githubusercontent", "commitlint", "EDITMSG", diff --git a/press/press/doctype/deploy_candidate/deploy_candidate.py b/press/press/doctype/deploy_candidate/deploy_candidate.py index be0bd45a80..126d8dd3cc 100644 --- a/press/press/doctype/deploy_candidate/deploy_candidate.py +++ b/press/press/doctype/deploy_candidate/deploy_candidate.py @@ -540,8 +540,11 @@ def fix_content_permission(tarinfo): return tarinfo tmp_file_path = tempfile.mkstemp(suffix=".tar.gz")[1] - with tarfile.open(tmp_file_path, "w:gz") as tar: - tar.add(self.build_directory, arcname=".", filter=fix_content_permission) + with tarfile.open(tmp_file_path, "w:gz", compresslevel=5) as tar: + if frappe.conf.developer_mode: + tar.add(self.build_directory, arcname=".", filter=fix_content_permission) + else: + tar.add(self.build_directory, arcname=".") step.status = "Success" step.duration = get_duration(start_time)