Fix env var forwarding in remote-install, add remote-clean target

This commit is contained in:
2026-06-13 20:51:53 +02:00
parent a815593f52
commit 643b1ccc61
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -22,10 +22,13 @@ content-pull:
# Remote # Remote
remote-install: 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: remote-install-plugins:
ssh $(SERVER) "cd $(WEBROOT) && php bin/gpm install $(shell cat plugins.txt | tr '\n' ' ') -y" ssh $(SERVER) "cd $(WEBROOT) && php bin/gpm install $(shell cat plugins.txt | tr '\n' ' ') -y"
remote-upgrade-grav: remote-upgrade-grav:
ssh $(SERVER) "cd $(WEBROOT) && php bin/grav upgrade" ssh $(SERVER) "cd $(WEBROOT) && php bin/grav upgrade"
remote-clean:
ssh $(SERVER) "cd $(WEBROOT) && php bin/grav clearcache"
+1
View File
@@ -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-install-plugins # install/update plugins from plugins.txt on server
make remote-upgrade-grav # upgrade Grav core on server make remote-upgrade-grav # upgrade Grav core on server
make remote-clean # clear Grav cache on server
``` ```
## Plugins ## Plugins