From aa33976fc884b544cddc932a04e791c3b7b2dd8f Mon Sep 17 00:00:00 2001 From: Catalin Constantin Mititiuc Date: Sun, 22 Jun 2025 10:29:40 -0700 Subject: [PATCH] Add deploy command to Makefile --- Makefile | 14 ++++++++++++++ README.md | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/Makefile b/Makefile index 60f5bf6..74c9081 100644 --- a/Makefile +++ b/Makefile @@ -22,3 +22,17 @@ lint: test: build-pygments ./test.sh + +host = 'gundi@miti.sh' +path = 'www/sites/miti.sh/html/' + +deploy: confirm_deploy + rsync -rvuzL html/ $(host):$(path) + +confirm_deploy: + @echo -n "Deploy previously generated site over ssh using rsync\n\n\ + Server hostname $(host)?\n\ + Path on server to deploy to $(path)?\n\n\ + Are you sure? [y/N] " && read ans && [ $${ans:-N} = y ] + +.PHONY: confirm_deploy diff --git a/README.md b/README.md index 7688726..53baf11 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,10 @@ example: $ pygmentize -S default -f html +### deploy + + $ make deploy + ## gotchas ### What is error `cosmo failed: [string "..."]:62: cannot resume dead coroutine`?