]> Git in Space - website/commitdiff
Add push target to send site to server
authorMira Ayre <mi@boxin.space>
Sat, 16 Jan 2021 03:55:41 +0000 (03:55 +0000)
committerMira Ayre <mi@boxin.space>
Sat, 19 Jun 2021 16:56:41 +0000 (17:56 +0100)
Makefile
rsync-excludes [new file with mode: 0644]

index 8f122cdd7d464bde26366a31bde94fa7944bd703..b2fe0d511051955ae485f84db7e2aecc3c71fa9e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,3 +8,8 @@ site: $(patsubst %.cf, %.html, $(FILES))
 
 clean:
        find www -type f -name '*.html' -exec rm {} \;
+
+push: site
+       rsync --exclude-from=rsync-excludes -ruzv -e "ssh -p 8011" \
+               www olie@boxin.space:/var/
+       ssh -p 8011 olie@boxin.space "df -h"
diff --git a/rsync-excludes b/rsync-excludes
new file mode 100644 (file)
index 0000000..834cc7e
--- /dev/null
@@ -0,0 +1,3 @@
+*.cf
+*PREFIX
+*SUFFIX