From 40c11059f7cbabed85a45fc053ba1ec3f3fd56b5 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Thu, 24 Aug 2023 23:18:14 +0400 Subject: [PATCH] Deploy static assets --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bddff323..74ed80bf 100644 --- a/Makefile +++ b/Makefile @@ -6,9 +6,17 @@ DEPLOY_PATH = /srv/causa_arcana_archivebox LOCAL_ARCHIVE_PATH = $(DATA_PATH)/archive DEPLOY_ARCHIVE_PATH = $(DEPLOY_PATH)/archive +LOCAL_STATIC_PATH = archivebox/templates/static +DEPLOY_STATIC_PATH = $(DEPLOY_PATH)/static + DEPLOY_SSH_HOST = alpha.causa-arcana.com DEPLOY_SSH_PORT = 57393 DEPLOY_SSH_USER = kotovalexarian -deploy: +deploy: deploy-static deploy-archive + +deploy-static: + $(RSYNC) --del -e 'ssh -p $(DEPLOY_SSH_PORT)' '$(LOCAL_STATIC_PATH)/' '$(DEPLOY_SSH_USER)@$(DEPLOY_SSH_HOST):$(DEPLOY_STATIC_PATH)/' + +deploy-archive: $(RSYNC) --del -e 'ssh -p $(DEPLOY_SSH_PORT)' '$(LOCAL_ARCHIVE_PATH)/' '$(DEPLOY_SSH_USER)@$(DEPLOY_SSH_HOST):$(DEPLOY_ARCHIVE_PATH)/'