Rename server-* targets to remote-*, update README

This commit is contained in:
2026-06-13 20:30:12 +02:00
parent 8154628101
commit a815593f52
2 changed files with 13 additions and 13 deletions
+4 -4
View File
@@ -20,12 +20,12 @@ content-push:
content-pull: content-pull:
git subtree pull --prefix=user user-deploy main --squash git subtree pull --prefix=user user-deploy main --squash
# Server # Remote
server-install: remote-install:
ssh $(SERVER) "bash -s" < scripts/server-install.sh ssh $(SERVER) "bash -s" < scripts/server-install.sh
server-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"
server-upgrade-grav: remote-upgrade-grav:
ssh $(SERVER) "cd $(WEBROOT) && php bin/grav upgrade" ssh $(SERVER) "cd $(WEBROOT) && php bin/grav upgrade"
+9 -9
View File
@@ -47,7 +47,7 @@ The `user/` folder in this repo is linked to the user repo via git subtree.
Production runs on a VPS with Apache. The user repo is cloned into the Grav `user/` folder on the server and kept in sync via the Git Sync plugin. Production runs on a VPS with Apache. The user repo is cloned into the Grav `user/` folder on the server and kept in sync via the Git Sync plugin.
### Server config ### Remote config
Copy `.env.example` to `.env` and fill in your values (gitignored): Copy `.env.example` to `.env` and fill in your values (gitignored):
@@ -57,28 +57,28 @@ WEBROOT=/path/to/public_html
USER_REPO=ssh://git@gitea.example.com/user/repo.git USER_REPO=ssh://git@gitea.example.com/user/repo.git
``` ```
### First-time server install ### First-time install
``` ```
make server-install make remote-install
``` ```
This SSHes into the server and runs `scripts/server-install.sh`, which installs Grav and clones the user repo. This SSHes into the server and runs `scripts/server-install.sh`, which installs Grav and clones the user repo.
### Deploying changes ### Deploying content changes
``` ```
make content-push # push local user/ changes to the user repo on Gitea make content-push # push local user/ changes to the user repo on Gitea
make content-pull # pull editor's content changes back locally make content-pull # pull editor's content changes back locally
``` ```
After `make deploy`, the Git Sync plugin on the server pulls the changes automatically via webhook. After `make content-push`, the Git Sync plugin on the server pulls the changes automatically via webhook.
### Server maintenance ### Remote maintenance
``` ```
make server-install-plugins # install/update plugins from plugins.txt on server make remote-install-plugins # install/update plugins from plugins.txt on server
make server-upgrade-grav # upgrade Grav core on server make remote-upgrade-grav # upgrade Grav core on server
``` ```
## Plugins ## Plugins
@@ -86,4 +86,4 @@ make server-upgrade-grav # upgrade Grav core on server
Plugins are not committed to git. The full list is in `plugins.txt`. Plugins are not committed to git. The full list is in `plugins.txt`.
- Locally: `make install-plugins` - Locally: `make install-plugins`
- On server: `make server-install-plugins` - Remotely: `make remote-install-plugins`