feat(deploy): add deploy-sync script for production environment setup

feat(init-server.py): implement http_host_sync command for server initialization
refactor(http_host_lib): enhance asset downloading functions to return status of changes made
This commit is contained in:
Zsolt Ero
2024-10-28 12:33:53 +01:00
parent 6fbe9f04e9
commit bd7f5fa740
4 changed files with 37 additions and 10 deletions

View File

@@ -125,6 +125,16 @@ def loadbalancer(hostname, user, port, noninteractive):
setup_loadbalancer(c)
@cli.command()
@common_options
def http_host_sync(hostname, user, port, noninteractive):
if not noninteractive and not click.confirm(f'Run script on {hostname}?'):
return
c = get_connection(hostname, user, port)
run_http_host_sync(c)
@cli.command()
@common_options
def debug(hostname, user, port, noninteractive):