feat: add demo-load and demo-reset make commands
This commit is contained in:
@@ -19,6 +19,19 @@ setup: start install-plugins
|
|||||||
install-plugins:
|
install-plugins:
|
||||||
docker exec -w /app/www/public intotheeast_grav php bin/gpm install $(shell cat plugins.txt | tr '\n' ' ') -y
|
docker exec -w /app/www/public intotheeast_grav php bin/gpm install $(shell cat plugins.txt | tr '\n' ' ') -y
|
||||||
|
|
||||||
|
# ── Demo content ──────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
demo-load:
|
||||||
|
cp -r user/docs/demo/tracker/. user/pages/01.tracker/
|
||||||
|
docker exec intotheeast_grav bash -c "cd /app/www/public && php bin/grav clearcache"
|
||||||
|
|
||||||
|
demo-reset:
|
||||||
|
@for dir in user/docs/demo/tracker/*/; do \
|
||||||
|
folder=$$(basename "$$dir"); \
|
||||||
|
rm -rf "user/pages/01.tracker/$$folder"; \
|
||||||
|
done
|
||||||
|
docker exec intotheeast_grav bash -c "cd /app/www/public && php bin/grav clearcache"
|
||||||
|
|
||||||
# ── Content sync (user repo ↔ Gitea) ──────────────────────────────────────────
|
# ── Content sync (user repo ↔ Gitea) ──────────────────────────────────────────
|
||||||
|
|
||||||
content-push:
|
content-push:
|
||||||
|
|||||||
Reference in New Issue
Block a user