feat: add pixelfed-import script and make target
Copies JSON export + script into Docker container and runs import via python3; installs python3 if absent. Idempotent (skips existing folders). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr
This commit is contained in:
@@ -55,6 +55,12 @@ demo-load:
|
||||
demo-reset:
|
||||
docker exec intotheeast_grav bash -c "rm -rf /var/www/html/user/pages/01.trips/italy-2026-demo && cd /var/www/html && php bin/grav clearcache"
|
||||
|
||||
pixelfed-import:
|
||||
docker exec intotheeast_grav bash -c "which python3 || apt-get install -y python3 --no-install-recommends -q"
|
||||
docker cp /home/mischa/Nextcloud/Downloads/pixelfed/pixelfed-statuses.json intotheeast_grav:/tmp/pixelfed-statuses.json
|
||||
docker cp scripts/pixelfed-import.py intotheeast_grav:/tmp/pixelfed-import.py
|
||||
docker exec -w /var/www/html intotheeast_grav python3 /tmp/pixelfed-import.py
|
||||
|
||||
# ── Content sync (user repo ↔ Gitea) ──────────────────────────────────────────
|
||||
|
||||
content-push:
|
||||
|
||||
Reference in New Issue
Block a user