From 3c5f5a41fec32f93c11d14019e23067f31713227 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Thu, 24 Aug 2023 23:33:04 +0400 Subject: [PATCH] Only deploy a few files --- Makefile | 17 +++-------------- target/archive | 1 + target/favicon.ico | 1 + target/robots.txt | 1 + target/static/archive.png | 1 + 5 files changed, 7 insertions(+), 14 deletions(-) create mode 120000 target/archive create mode 120000 target/favicon.ico create mode 120000 target/robots.txt create mode 120000 target/static/archive.png diff --git a/Makefile b/Makefile index 74ed80bf..2908b4e3 100644 --- a/Makefile +++ b/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)/' diff --git a/target/archive b/target/archive new file mode 120000 index 00000000..5f04b244 --- /dev/null +++ b/target/archive @@ -0,0 +1 @@ +../data/archive/ \ No newline at end of file diff --git a/target/favicon.ico b/target/favicon.ico new file mode 120000 index 00000000..0ca113ea --- /dev/null +++ b/target/favicon.ico @@ -0,0 +1 @@ +../archivebox/templates/static/favicon.ico \ No newline at end of file diff --git a/target/robots.txt b/target/robots.txt new file mode 120000 index 00000000..3db4eec5 --- /dev/null +++ b/target/robots.txt @@ -0,0 +1 @@ +../archivebox/templates/static/robots.txt \ No newline at end of file diff --git a/target/static/archive.png b/target/static/archive.png new file mode 120000 index 00000000..cf3cffb8 --- /dev/null +++ b/target/static/archive.png @@ -0,0 +1 @@ +../../archivebox/templates/static/archive.png \ No newline at end of file