diff --git a/scripts/lib/upgrade-zulip-stage-2 b/scripts/lib/upgrade-zulip-stage-2 index ce9b9f66c9..d5b724ab55 100755 --- a/scripts/lib/upgrade-zulip-stage-2 +++ b/scripts/lib/upgrade-zulip-stage-2 @@ -27,7 +27,6 @@ os.environ["LANGUAGE"] = "en_US.UTF-8" sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..")) from scripts.lib.zulip_tools import ( - DEPLOYMENTS_DIR, assert_running_as_root, get_config, get_config_file, @@ -227,10 +226,7 @@ elif args.from_git: # update-prod-static with the Git upgrade process. But it'll fail # safely; this seems like a worthwhile tradeoff to minimize downtime. logging.info("Building static assets...") - subprocess.check_call( - ["./tools/update-prod-static", "--prev-deploy=" + os.path.join(DEPLOYMENTS_DIR, "current")], - preexec_fn=su_to_zulip, - ) + subprocess.check_call(["./tools/update-prod-static"], preexec_fn=su_to_zulip) logging.info("Caching Zulip Git version...") subprocess.check_call(["./tools/cache-zulip-git-version"], preexec_fn=su_to_zulip) else: diff --git a/tools/update-prod-static b/tools/update-prod-static index c723a59ccc..c368b61a15 100755 --- a/tools/update-prod-static +++ b/tools/update-prod-static @@ -1,7 +1,6 @@ #!/usr/bin/env python3 # Updates static files for production. -import argparse import os import sys @@ -21,13 +20,6 @@ from scripts.lib.zulip_tools import run sanity_check.check_venv(__file__) -parser = argparse.ArgumentParser() -parser.add_argument( - "--prev-deploy", metavar="DIR", help="a previous deploy from which to reuse files if possible" -) -args = parser.parse_args() -prev_deploy = args.prev_deploy - os.chdir(settings.DEPLOY_ROOT) # Install node packages