aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-05-22 22:44:39 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2022-05-22 22:44:39 +0200
commit40ca4e4842d3832715eb8e07189ebdba81047083 (patch)
tree8f556f740eaea4f839c5b837d124eb65040b1f4e
parent46310ea045e5d979c8cbbf343c9bf94ed95da8d8 (diff)
downloadsebastiano.tronto.net-40ca4e4842d3832715eb8e07189ebdba81047083.tar.gz
sebastiano.tronto.net-40ca4e4842d3832715eb8e07189ebdba81047083.zip
Added deploy to gemini
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 06441fc..73846ee 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
1DEST="tronto.net:/var/www/htdocs/sebastiano.tronto.net" 1DEST="tronto.net:/var/www/htdocs/sebastiano.tronto.net"
2DESTGEMINI="tronto.net:/var/gemini"
2 3
3all: clean 4all: clean
4 ./build.sh 5 ./build.sh
@@ -7,8 +8,14 @@ clean:
7 mkdir -p http 8 mkdir -p http
8 rm -r http 9 rm -r http
9 10
10deploy: all 11deploy: syncgemini synchttp
12
13syncgemini:
14 rsync -rv --delete --rsync-path=openrsync gemini/ ${DESTGEMINI} || \
15 openrsync -rv --delete --rsync-path=openrsync gemini/ ${DESTGEMINI}
16
17synchttp:
11 rsync -rv --delete --rsync-path=openrsync http/ ${DEST} || \ 18 rsync -rv --delete --rsync-path=openrsync http/ ${DEST} || \
12 openrsync -rv --delete --rsync-path=openrsync http/ ${DEST} 19 openrsync -rv --delete --rsync-path=openrsync http/ ${DEST}
13 20
14.PHONY: all clean deploy 21.PHONY: all clean deploy syncgemini synchttp

Generated with cgit - Back to sebastiano.tronto.net