Compare commits

..

2 Commits

Author SHA1 Message Date
5b572b2e66 Merge pull request 'fix' (#17) from master into dev
Reviewed-on: #17
2025-06-01 15:06:38 +03:00
Egor Matveev
224fb045e9 fix
All checks were successful
Deploy Dev / Build (pull_request) Successful in 5s
Deploy Dev / Push (pull_request) Successful in 9s
Deploy Dev / Deploy dev (pull_request) Successful in 8s
2025-06-01 15:06:22 +03:00

View File

@ -22,11 +22,11 @@ def call(command: str) -> Response:
def get_hosts() -> list[str]: def get_hosts() -> list[str]:
return list(set(configurator.get_config("hosts") + ["platform.chocomarsh.com"])) return list(set(configurator.get_config("hosts") + ["platform.develop.chocomarsh.com"]))
def update_host(host: str): def update_host(host: str):
gen_cert = call(f"docker exec -it $(docker ps -q -f name=infra_nginx) certbot --nginx --email emmtvv@gmail.com --agree-tos -d \"{host}\"") gen_cert = call(f"docker exec -it $(docker ps -q -f name=infra-development_nginx) certbot --nginx --email emmtvv@gmail.com --agree-tos -d \"{host}\"")
if gen_cert.code != 0: if gen_cert.code != 0:
print(f"failed generating certificate: {gen_cert.err}") print(f"failed generating certificate: {gen_cert.err}")
return return