From: Malte Bublitz Date: Sun, 8 Jan 2023 18:26:34 +0000 (+0100) Subject: make durch just ersetzt X-Git-Url: https://git.rt3x.de/?a=commitdiff_plain;h=b4cba37de769b273d037a78c7609fafeef38fb03;p=startseite.malte70.de.git make durch just ersetzt --- diff --git a/Makefile b/Makefile deleted file mode 100644 index 8c2b485..0000000 --- a/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -REMOTE_HOST = web -REMOTE_PATH = /srv/http/malte70/startseite.malte70.de - -.PHONY: all git-pull git-push deploy - -all: git-push deploy - -git-pull: - git pull - -git-push: git-pull - git push - -deploy: - ssh $(REMOTE_HOST) cd $(REMOTE_PATH)\; git pull - diff --git a/justfile b/justfile new file mode 100644 index 0000000..e1b34fb --- /dev/null +++ b/justfile @@ -0,0 +1,17 @@ +remote_host := "web" +remote_path := "/srv/http/malte70/startseite.malte70.de" + +default: deploy + +# Pull from git main +pull: + git pull + +# Push to main +push: pull + git push + +# Deploy to live +deploy: push + ssh {{remote_host}} cd {{remote_path}}\; git pull +