fix
This commit is contained in:
parent
66eefeb324
commit
9b89423d95
6
main.py
6
main.py
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user