Compare commits
No commits in common. "4f0571ec02c5630abd6228ace458ac2379e0df7d" and "ad5a22e98504c66e0e1400d9e0900ee137a7b664" have entirely different histories.
4f0571ec02
...
ad5a22e985
6
main.py
6
main.py
@ -83,11 +83,9 @@ while True:
|
||||
updated = True
|
||||
if updated:
|
||||
if os.getenv("STAGE") == "development":
|
||||
container_id_run = call("echo $(docker ps -q -f name=infra-development_nginx)")
|
||||
container_id_run = call(f"echo $(docker ps -q -f name=infra-development_nginx)").out
|
||||
else:
|
||||
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)
|
||||
container_id_run = call(f"echo $(docker ps -q -f name=infra_nginx)").out
|
||||
|
||||
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