Fix change_url again, otherwise the lack of path_url default to the old path and fucks up the nginx regen

This commit is contained in:
Alexandre Aubin 2023-12-09 15:54:04 +01:00
parent 38db30cd70
commit 169c921444

View file

@ -480,6 +480,7 @@ def app_change_url(operation_logger, app, domain, path):
env_dict["new_path"] = path
env_dict["domain"] = domain
env_dict["path"] = path
env_dict["path_url"] = path
env_dict["change_path"] = "1" if old_path != path else "0"
env_dict["change_domain"] = "1" if old_domain != domain else "0"
@ -500,6 +501,8 @@ def app_change_url(operation_logger, app, domain, path):
change_url_script = os.path.join(tmp_workdir_for_app, "scripts/change_url")
import pdb; pdb.set_trace()
# Execute App change_url script
change_url_failed = True
try: