From 2758e3c3b29046f9519a57b610dc599ec1efb6ad Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Fri, 1 Aug 2025 11:52:12 -0400 Subject: [PATCH] move reload --- scripts/deploy_containers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/deploy_containers.py b/scripts/deploy_containers.py index 10a6714..932ede5 100644 --- a/scripts/deploy_containers.py +++ b/scripts/deploy_containers.py @@ -22,10 +22,6 @@ def run_deployment(tag = None): if tag: command = construct_ansible_command(tag=tag) - print("Reloading Caddyfile..") - subprocess.run(construct_ansible_command(tag="caddyfile_deploy"), shell=True, stdout=subprocess.PIPE) - subprocess.run("docker exec -w /etc/caddy caddy caddy reload", shell=True) - print(f"Running deployment for {tag}..") res = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) lines = res.stdout.decode(encoding='utf-8').split("\n") @@ -52,6 +48,10 @@ def run_deployment(tag = None): def main(): diff = git_diff() + print("Reloading Caddyfile..") + subprocess.run(construct_ansible_command(tag="caddyfile_deploy"), shell=True, stdout=subprocess.PIPE) + subprocess.run("docker exec -w /etc/caddy caddy caddy reload", shell=True) + success = True deployed = 0 for file in diff: