From 9f06384deb24b4f9e492c7e116b0c12ca50d565c Mon Sep 17 00:00:00 2001 From: iou1name Date: Sun, 21 Oct 2018 13:28:30 -0400 Subject: [PATCH] fixed crontab --- README.md | 2 +- cron.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index b2ba6ab..d261a7c 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Python packages: `flask gunicorn requests bs4 redis lxml` ## Install 1. Get on the floor 2. Walk the dinosaur -3. Install crontab to run `cron.py` ex. `0 * * * * python3 /path/to/cron.py` +3. Install crontab to run `cron.py` ex. `0 * * * * . /path/to/virtual/environment/activate && cd /path/to/simplesyndicate && python3 cron.py` ## Usage `gunicorn -b localhost:5200 -e SCRIPT_NAME=/ss ss:app` diff --git a/cron.py b/cron.py index ecd2320..8d308c3 100755 --- a/cron.py +++ b/cron.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 """ Script to be called by cron to update all feeds periodically. -Ex. 0 * * * * python3 /path/to/cron.py """ import database