mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user