forked from neff/neff-steindesign.de
Add upload target to makefile
This commit is contained in:
parent
f970a659ba
commit
95ecbc48d4
7
Makefile
7
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue