master #48

Merged
emmatveev merged 11 commits from master into prod 2025-06-12 01:58:34 +03:00
Showing only changes of commit 9b89423d95 - Show all commits

View File

@ -83,9 +83,11 @@ while True:
updated = True
if updated:
if os.getenv("STAGE") == "development":
container_id_run = call(f"echo $(docker ps -q -f name=infra-development_nginx)").out
container_id_run = call("echo $(docker ps -q -f name=infra-development_nginx)")
else:
container_id_run = call(f"echo $(docker ps -q -f name=infra_nginx)").out
container_id_run = call("echo $(docker ps -q -f name=infra_nginx)")
print(container_id_run.code, container_id_run.out, container_id_run.err)
restart = call(f"docker exec {container_id_run} python3 prepare.py")
restart2 = call(f"docker exec {container_id_run} nginx -s reload")