commit 04da2f0ad556aee1ad131043ef6404d432023410 parent 0c907a37d6612fefb5a47da9bcede0c258c3e058 Author: mjkloeckner <martin.cachari@gmail.com> Date: Wed, 11 Jan 2023 17:36:57 -0300 added updated Makefile and README.md Diffstat:
M | Makefile | | | 20 | +++++++++++--------- |
M | README.md | | | 6 | ++---- |
2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile @@ -1,20 +1,22 @@ -KEY = ${HOME}/.ssh/key-mini -DOMAIN = kloeckner.com.ar +KEY = ${HOME}/.ssh/key-mini +DOMAIN = kloeckner.com.ar +ROOT_PATH = $(CURDIR) all: sync build: - ./scripts/build.sh - ./scripts/sync.sh + ./scripts/build.sh ${ROOT_PATH} + ./scripts/sync.sh ${ROOT_PATH} sync: build - sudo ./scripts/deploy_local.sh + sudo ./scripts/deploy_local.sh ${ROOT_PATH} deploy: - rsync -e "ssh -i $(KEY)" -orahvPt \ - --delete --exclude=.git --exclude=scripts --delete-excluded \ - ./ root@$(DOMAIN):/var/www/html/ - + rsync -e "ssh -i $(KEY)" -rhvPt \ + --delete --exclude=.git --exclude=${ROOT_PATH}/scripts \ + --delete-excluded ./ root@$(DOMAIN):/var/www/html/ + rsync -e "ssh -i $(KEY)" -rhvPt --exclude=index.html\ + ./git/ root@$(DOMAIN):/var/www/git/ ssh -i $(KEY) root@$(DOMAIN) -t 'systemctl restart nginx' .PHONY: build sync deploy diff --git a/README.md b/README.md @@ -10,8 +10,6 @@ This is a backup of my webpage ## License -Webpage generating scripts are licensed under -[MIT](https://github.com/mjkloeckner/kloeckner.com.ar/blob/main/LICENSE) +Webpage generating scripts are licensed under [MIT](). -The content of the webpage is licensed under [CC BY -4.0](https://creativecommons.org/licenses/by/4.0/) +The content of the webpage is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)