From 643b1ccc61ae0e0fe0c5e0ff5febd1d9bae427c4 Mon Sep 17 00:00:00 2001 From: Mischa Date: Sat, 13 Jun 2026 20:51:53 +0200 Subject: [PATCH] Fix env var forwarding in remote-install, add remote-clean target --- Makefile | 5 ++++- README.md | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 09b6423..db2f0b4 100644 --- a/Makefile +++ b/Makefile @@ -22,10 +22,13 @@ content-pull: # Remote remote-install: - ssh $(SERVER) "bash -s" < scripts/server-install.sh + ssh $(SERVER) "WEBROOT=$(WEBROOT) USER_REPO=$(USER_REPO) bash -s" < scripts/server-install.sh remote-install-plugins: ssh $(SERVER) "cd $(WEBROOT) && php bin/gpm install $(shell cat plugins.txt | tr '\n' ' ') -y" remote-upgrade-grav: ssh $(SERVER) "cd $(WEBROOT) && php bin/grav upgrade" + +remote-clean: + ssh $(SERVER) "cd $(WEBROOT) && php bin/grav clearcache" diff --git a/README.md b/README.md index 38e5a99..f53eb0a 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ After `make content-push`, the Git Sync plugin on the server pulls the changes a ``` make remote-install-plugins # install/update plugins from plugins.txt on server make remote-upgrade-grav # upgrade Grav core on server +make remote-clean # clear Grav cache on server ``` ## Plugins