nginx sync

This commit is contained in:
Zsolt Ero
2023-12-29 03:49:08 +01:00
parent 83e7fbbf54
commit 4b5cc59c70
7 changed files with 114 additions and 62 deletions

View File

@@ -21,6 +21,11 @@ DEFAULT_RUNS_DIR = Path('/data/ofm/http_host/runs')
)
@click.option('--list-versions', is_flag=True, help='List all versions in an area and terminate')
def cli(area: str, version: str, list_versions: bool, runs_dir: Path):
"""
Downloads and extracts the latest tiles.btrfs file from the public bucket.
Specific version can also be specified.
"""
if area not in {'planet', 'monaco'}:
sys.exit('Please specify are: "planet" or "monaco"')