22 lines
711 B
Makefile
22 lines
711 B
Makefile
RSYNC = rsync -aPh --stats
|
|
|
|
DATA_PATH = data
|
|
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-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)/'
|