fixed crontab

This commit is contained in:
iou1name 2018-10-21 13:28:30 -04:00
parent 9d52c8454b
commit 116154a111
2 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,7 @@ Python packages: `flask gunicorn requests bs4 redis lxml`
## Install ## Install
1. Get on the floor 1. Get on the floor
2. Walk the dinosaur 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 ## Usage
`gunicorn -b localhost:5200 -e SCRIPT_NAME=/ss ss:app` `gunicorn -b localhost:5200 -e SCRIPT_NAME=/ss ss:app`

View File

@ -1,7 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
""" """
Script to be called by cron to update all feeds periodically. Script to be called by cron to update all feeds periodically.
Ex. 0 * * * * python3 /path/to/cron.py
""" """
import database import database