From 4c699961adafdc1b147f9138591af72c903414d3 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 8 Aug 2021 17:42:00 +0200 Subject: [PATCH] fixup! build: makefile: add deploy step --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c999de2..e2b0db4 100644 --- a/Makefile +++ b/Makefile @@ -19,10 +19,10 @@ deploy: then echo "Missing one of SSH_USER, SSH_HOST, or SSH_TARGET" >&2; \ exit 1; \ fi - export HOME="$$(mktemp -d)" - echo "$$HOME" - @echo rsync -e "env HOME=\"$$HOME\" ssh -o StrictHostKeyChecking=no" --progress -avz --delete public/ "$$SSH_USER@$$SSH_HOST:$$SSH_TARGET" - rsync -e "env HOME=\"$$HOME\" ssh -o StrictHostKeyChecking=no" --progress -avz --delete public/ "$$SSH_USER@$$SSH_HOST:$$SSH_TARGET" + mkdir -p ~/.ssh/ + ssh-keygen -R "$$SSH_HOST" + ssh-keyscan "$$SSH_HOST" >> ~/.ssh/known_hosts + rsync -e "ssh -o StrictHostKeyChecking=no" --progress -avz --delete public/ "$$SSH_USER@$$SSH_HOST:$$SSH_TARGET" .PHONY: clean clean: