Only deploy a few files
This commit is contained in:
parent
40c11059f7
commit
3c5f5a41fe
5 changed files with 7 additions and 14 deletions
17
Makefile
17
Makefile
|
@ -1,22 +1,11 @@
|
|||
RSYNC = rsync -aPh --stats
|
||||
|
||||
DATA_PATH = data
|
||||
LOCAL_PATH = target
|
||||
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)/'
|
||||
deploy:
|
||||
$(RSYNC) --del --copy-links -e 'ssh -p $(DEPLOY_SSH_PORT)' '$(LOCAL_PATH)/' '$(DEPLOY_SSH_USER)@$(DEPLOY_SSH_HOST):$(DEPLOY_PATH)/'
|
||||
|
|
1
target/archive
Symbolic link
1
target/archive
Symbolic link
|
@ -0,0 +1 @@
|
|||
../data/archive/
|
1
target/favicon.ico
Symbolic link
1
target/favicon.ico
Symbolic link
|
@ -0,0 +1 @@
|
|||
../archivebox/templates/static/favicon.ico
|
1
target/robots.txt
Symbolic link
1
target/robots.txt
Symbolic link
|
@ -0,0 +1 @@
|
|||
../archivebox/templates/static/robots.txt
|
1
target/static/archive.png
Symbolic link
1
target/static/archive.png
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../archivebox/templates/static/archive.png
|
Loading…
Reference in a new issue