Add remote-deploy target: pull user repo and install plugins
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user