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