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

@@ -19,10 +19,9 @@ def full_sync(force=False):
assert_sudo()
# start
versions_changed = fetch_version_files()
download_assets()
assets_changed = download_assets()
btrfs_downloaded = False
@@ -35,7 +34,7 @@ def full_sync(force=False):
btrfs_downloaded += download_area_version(area='planet', version='latest')
btrfs_downloaded += download_area_version(area='planet', version='deployed')
if btrfs_downloaded or versions_changed or force:
if btrfs_downloaded or versions_changed or assets_changed or force:
auto_clean_btrfs()
auto_mount()