From 95ecbc48d438ac60cb99d20b70cea9084c3cdfe4 Mon Sep 17 00:00:00 2001 From: Patrick Neff Date: Thu, 17 Jan 2019 19:21:01 +0100 Subject: [PATCH] Add upload target to makefile --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0b043e5..fa17513 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ THEME = neff LOCAL_DIR = /srv/http/staging REMOTE_DIR = /srv/http/live -REMOTE = dev.test:/var/www/neff-steindesign.dev.test +REMOTE = neff-steindesign.de@ssh.sterato.com:seiten/hugo HUGO = /usr/bin/hugo NPM = /usr/bin/npm @@ -9,7 +9,7 @@ RSYNC = /usr/bin/rsync JPEGOPTIM = /usr/bin/jpegoptim OPTIPNG = /usr/bin/optipng -.PHONY: all clean server jpegoptim optipng site staging theme local +.PHONY: all clean server jpegoptim optipng site staging theme local upload .SUFFIXES: .jpg .png .md .html .js .css .scss .toml DIRS = content data static themes/$(THEME) resources @@ -36,6 +36,9 @@ local: staging: $(HUGO) --buildDrafts --buildExpired --buildFuture --gc +upload: + $(RSYNC) -avz --delete $(REMOTE_DIR)/ $(REMOTE) + server: themes/$(THEME)/package-lock.json themes/$(THEME)/src $(HUGO) server --buildDrafts --buildExpired --buildFuture --gc