Browse Source

Let reading feed be generated via cron locally.

main
hoschi-it 5 months ago
parent
commit
16c4590467
  1. 1
      .gitignore
  2. 9
      tools/gmi-follower-to-feed

1
.gitignore

@ -1,2 +1,3 @@
*~
*.swp
/src/gemtext/reads.gmi

9
tools/gmi-follower-to-feed

@ -1,8 +1,10 @@
#!/bin/bash
# generate a gemfeed out of my subscription
# and deploy it directly to the gemserver
hfile="/tmp/gmisub-header.txt"
logroll="../src/gemtext/follows.gmi"
out="../src/gemtext/reads.gmi"
out="/tmp/reads.gmi"
maxdate=$(python3 -c '
import datetime
@ -19,4 +21,7 @@ Hier sind Inhalte von Leuten denen ich folge.
Zuletzt aktualisiert: $(date --iso).
" > $hfile
gmisub -d $maxdate -h $hfile $logroll $out
/usr/local/bin/gmisub -d $maxdate -h $hfile $logroll $out
# still needs to be done manually (because of authentication).
# scp $out envs:/home/hoschi/public_gemini/reads.gmi
Loading…
Cancel
Save