1
0
Fork 0

Only deploy a few files

This commit is contained in:
Alex Kotov 2023-08-24 23:33:04 +04:00
parent 40c11059f7
commit 3c5f5a41fe
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
5 changed files with 7 additions and 14 deletions

View file

@ -1,22 +1,11 @@
RSYNC = rsync -aPh --stats RSYNC = rsync -aPh --stats
DATA_PATH = data LOCAL_PATH = target
DEPLOY_PATH = /srv/causa_arcana_archivebox 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_HOST = alpha.causa-arcana.com
DEPLOY_SSH_PORT = 57393 DEPLOY_SSH_PORT = 57393
DEPLOY_SSH_USER = kotovalexarian DEPLOY_SSH_USER = kotovalexarian
deploy: deploy-static deploy-archive deploy:
$(RSYNC) --del --copy-links -e 'ssh -p $(DEPLOY_SSH_PORT)' '$(LOCAL_PATH)/' '$(DEPLOY_SSH_USER)@$(DEPLOY_SSH_HOST):$(DEPLOY_PATH)/'
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)/'

1
target/archive Symbolic link
View file

@ -0,0 +1 @@
../data/archive/

1
target/favicon.ico Symbolic link
View file

@ -0,0 +1 @@
../archivebox/templates/static/favicon.ico

1
target/robots.txt Symbolic link
View file

@ -0,0 +1 @@
../archivebox/templates/static/robots.txt

1
target/static/archive.png Symbolic link
View file

@ -0,0 +1 @@
../../archivebox/templates/static/archive.png