From b4cba37de769b273d037a78c7609fafeef38fb03 Mon Sep 17 00:00:00 2001 From: Malte Bublitz Date: Sun, 8 Jan 2023 19:26:34 +0100 Subject: [PATCH] make durch just ersetzt --- Makefile | 16 ---------------- justfile | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 16 deletions(-) delete mode 100644 Makefile create mode 100644 justfile 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 + -- 2.30.2