diff --git a/Makefile b/Makefile index 1873de3..78b886b 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,9 @@ content-pull: remote-install: ssh $(SSH) "WEBROOT=$(WEBROOT) REPO=$(REPO) GRAV_VERSION=$(GRAV_VERSION) PLUGINS='$(shell cat plugins.txt | tr '\n' ' ')' GITEA_HOST=$(GITEA_HOST) GITEA_USER=$(GITEA_USER) GITEA_TOKEN=$(GITEA_TOKEN) bash -s" < scripts/server-install.sh +remote-deploy: + ssh $(SSH) "cd $(WEBROOT)/user && git pull && cd $(WEBROOT) && php bin/gpm install $(shell cat plugins.txt | tr '\n' ' ') -y" + remote-install-plugins: ssh $(SSH) "cd $(WEBROOT) && php bin/gpm install $(shell cat plugins.txt | tr '\n' ' ') -y" diff --git a/README.md b/README.md index f53eb0a..316b03e 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,11 @@ make content-push # push local user/ changes to the user repo on Gitea make content-pull # pull editor's content changes back locally ``` -After `make content-push`, the Git Sync plugin on the server pulls the changes automatically via webhook. +After `make content-push`, trigger a deploy on the server: + +``` +make remote-deploy # pull latest user repo changes and install plugins on server +``` ### Remote maintenance