tMakefile: add deploy target - andersdamsgaard.com - my photography webpage
(HTM) git clone git://src.adamsgaard.dk/andersdamsgaard.com
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit a75472e4fc2e5d4f41150c2b27f12bc6b6d8d5c2
(DIR) parent bdfc3e31e90f62d5a5c326e6ecc38f3b0310c99e
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 5 May 2021 10:12:04 +0200
Makefile: add deploy target
Diffstat:
M Makefile | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
t@@ -17,6 +17,9 @@ generate-public:
# report size of build
du -h public/
+deploy: generate-public
+ rsync -av public/ ad@adamsgaard.dk:/var/www/domains/andersdamsgaard.com/
+
.PHONY: generate-letsencrypt-certificate
generate-letsencrypt-certificate:
sudo certbot certonly -a manual \