summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHorus2016-10-20 18:08:36 +0200
committerHorus2016-10-20 18:08:36 +0200
commit3a5fabf3c6f4f60a64885a52c76ba6dab8b71099 (patch)
tree5dd636d32bb4796855aafb0d0b2bcb091430d3e5 /Makefile
downloadiamfabulous.de-3a5fabf3c6f4f60a64885a52c76ba6dab8b71099.tar.gz
Initial commit.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..02e91c9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+all: clean build
+
+build:
+ hugo --ignoreCache --log=true --logFile=./log/hugo.log --verbose=false 1>/dev/null
+
+clean:
+ rm -rf public
+
+list:
+ ls public
+
+index:
+ cat public/index.html
+
+deploy: clean build
+ if [ -d /var/www/www.iamfabulous.de ]; then\
+ ( rsync --delete -avz public/ /var/www/www.iamfabulous.de/ 1>/dev/null 2>/dev/null && \
+ echo "Success: Site www.iamfabulous.de was built.") || ./error.sh; \
+ else \
+ rsync --delete -avze ssh public/ online:/var/www/www.iamfabulous.de.de/; \
+ fi
+