fix #31
3
main.py
3
main.py
@ -80,7 +80,8 @@ while True:
|
||||
updated = True
|
||||
if updated:
|
||||
if os.getenv("STAGE") == "development":
|
||||
result = call("docker service update --force infra-development_nginx")
|
||||
container_id_run = call(f"echo $(docker ps -q -f name=infra-development_nginx)")
|
||||
result = call(f"docker restart {container_id_run.out}")
|
||||
else:
|
||||
result = call("docker service update --force infra_nginx")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user