scripts: Refactor deployment-finished logging.

This commit is contained in:
Tim Abbott 2016-08-04 17:01:45 -07:00
parent 91b1521578
commit 51f069aa18
3 changed files with 2 additions and 3 deletions

View File

@ -80,7 +80,6 @@ try:
subprocess.check_call(["sudo", os.path.join(deploy_path, "scripts", "lib", "upgrade-zulip-stage-2"),
deploy_path, "--from-git"] + deploy_options)
logging.info("Deployment complete")
subprocess.check_call(["./scripts/purge-old-deployments"])
finally:
release_deployment_lock()

View File

@ -51,7 +51,5 @@ try:
deploy_path = deploy_path.strip()
os.chdir(deploy_path)
subprocess.check_call([os.path.abspath("./scripts/lib/upgrade-zulip-stage-2"), deploy_path])
logging.info("Deployment complete")
finally:
release_deployment_lock()

View File

@ -77,3 +77,5 @@ subprocess.check_output(["./scripts/restart-server"], preexec_fn=su_to_zulip)
if os.path.exists("/etc/supervisor/conf.d/zulip_db.conf"):
subprocess.check_call(["supervisorctl", "start", "process-fts-updates"], preexec_fn=su_to_zulip)
logging.info("Upgrade complete!")