From 216697736f8825af316451733b93e2d6cee04338 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 7 Sep 2022 16:26:13 +0200 Subject: workflows: set remote port --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 99c1266..f7b8947 100644 --- a/Makefile +++ b/Makefile @@ -66,12 +66,14 @@ assets/js/bundle.js: package-lock.json REMOTE_USER ?= who REMOTE_HOST ?= where +REMOTE_PORT ?= 22 REMOTE_DIR ?= /path/to/dir $(eval $(call noexpand,REMOTE_USER)) $(eval $(call noexpand,REMOTE_HOST)) +$(eval $(call noexpand,REMOTE_PORT)) $(eval $(call noexpand,REMOTE_DIR)) .PHONY: deploy deploy: - rsync -avh -e 'ssh -o StrictHostKeyChecking=no' _site/ '$(call escape,$(REMOTE_USER)@$(REMOTE_HOST):$(REMOTE_DIR)/)' --delete + rsync -avh -e 'ssh -p $(call escape,$(REMOTE_PORT)) -o StrictHostKeyChecking=no' _site/ '$(call escape,$(REMOTE_USER)@$(REMOTE_HOST):$(REMOTE_DIR)/)' --delete -- cgit v1.2.3