Deploy static assets
This commit is contained in:
parent
d4a5614504
commit
40c11059f7
1 changed files with 9 additions and 1 deletions
10
Makefile
10
Makefile
|
@ -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)/'
|
||||||
|
|
Loading…
Reference in a new issue