From 16ec162838eb8ab891f5b04351bb202d84a2b834 Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Mon, 9 Jun 2014 14:04:38 +0200 Subject: making pyagregator runnable by apache * adding bootstrap module for basic import * redoing logging (config, proper use of the logging module) * making secret part of config (random wouldn't work with apache since it uses different instances of python) * making server entry point not executing application if just imported * not writing file for opml when we can read it from memory --- fetch.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'fetch.py') diff --git a/fetch.py b/fetch.py index cc3068e0..8684b917 100755 --- a/fetch.py +++ b/fetch.py @@ -7,10 +7,7 @@ # */30 * * * * cd ~/.pyaggr3g470r/ ; python fetch.py # to fetch articles every 30 minutes. import sys -if 'threading' in sys.modules: - raise Exception('threading module loaded before patching!') -import gevent.monkey -gevent.monkey.patch_thread() +import bootstrap from pyaggr3g470r import crawler from pyaggr3g470r.models import User -- cgit