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
|
THEME = neff
|
||||||
LOCAL_DIR = /srv/http/staging
|
LOCAL_DIR = /srv/http/staging
|
||||||
REMOTE_DIR = /srv/http/live
|
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
|
HUGO = /usr/bin/hugo
|
||||||
NPM = /usr/bin/npm
|
NPM = /usr/bin/npm
|
||||||
|
|
@ -9,7 +9,7 @@ RSYNC = /usr/bin/rsync
|
||||||
JPEGOPTIM = /usr/bin/jpegoptim
|
JPEGOPTIM = /usr/bin/jpegoptim
|
||||||
OPTIPNG = /usr/bin/optipng
|
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
|
.SUFFIXES: .jpg .png .md .html .js .css .scss .toml
|
||||||
|
|
||||||
DIRS = content data static themes/$(THEME) resources
|
DIRS = content data static themes/$(THEME) resources
|
||||||
|
|
@ -36,6 +36,9 @@ local:
|
||||||
staging:
|
staging:
|
||||||
$(HUGO) --buildDrafts --buildExpired --buildFuture --gc
|
$(HUGO) --buildDrafts --buildExpired --buildFuture --gc
|
||||||
|
|
||||||
|
upload:
|
||||||
|
$(RSYNC) -avz --delete $(REMOTE_DIR)/ $(REMOTE)
|
||||||
|
|
||||||
server: themes/$(THEME)/package-lock.json themes/$(THEME)/src
|
server: themes/$(THEME)/package-lock.json themes/$(THEME)/src
|
||||||
$(HUGO) server --buildDrafts --buildExpired --buildFuture --gc
|
$(HUGO) server --buildDrafts --buildExpired --buildFuture --gc
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue