From 3e37e0521fbcd5130ee66b42def77553926c29d6 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Wed, 21 Jun 2023 16:19:59 -0400 Subject: add cron example for fetching feeds --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 80bd986..4ec3a1d 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,19 @@ Or if it is currently running in docker-compose: docker-compose exec newspipe entrypoint.sh create_admin admin "123456789" +## Fetching feeds +Because I'm too lazy to change the container to use uwsgi-python or something that can handle the jobs parts of flask, I wrote a cron job to run this shell script: + + #!/bin/sh + cd ~/newspipe-docker + docker-compose exec newspipe /usr/bin/poetry run flask fetch_asyncio + +Here's the cron entry: + + 25 3,15 * * * root /home/newspipe/newspipe-docker/contrib/newspipe_cron.sh 1>/dev/null 2>&1 & + +These files are in directory `contrib/`. + # Improve Future improvements include: -- cgit