1
0
Fork 0

Deploy static assets

This commit is contained in:
Alex Kotov 2023-08-24 23:18:14 +04:00
parent d4a5614504
commit 40c11059f7
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -6,9 +6,17 @@ DEPLOY_PATH = /srv/causa_arcana_archivebox
LOCAL_ARCHIVE_PATH = $(DATA_PATH)/archive LOCAL_ARCHIVE_PATH = $(DATA_PATH)/archive
DEPLOY_ARCHIVE_PATH = $(DEPLOY_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_HOST = alpha.causa-arcana.com
DEPLOY_SSH_PORT = 57393 DEPLOY_SSH_PORT = 57393
DEPLOY_SSH_USER = kotovalexarian 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)/' $(RSYNC) --del -e 'ssh -p $(DEPLOY_SSH_PORT)' '$(LOCAL_ARCHIVE_PATH)/' '$(DEPLOY_SSH_USER)@$(DEPLOY_SSH_HOST):$(DEPLOY_ARCHIVE_PATH)/'