From e9f5fc3350273803c280bd74bec5d8aa88192349 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Mon, 30 Aug 2010 23:56:53 -0400 Subject: [PATCH] More .gitignore, and adding cron jobs to fetch feeds. These will be replaced by celery within the next day or two. --- .gitignore | 1 + media/maintenance.html.unused | 5 +++++ utils/feed_fetch.sh | 9 +++++++++ utils/feed_fetch_silent.sh | 11 +++++++++++ 4 files changed, 26 insertions(+) create mode 100644 media/maintenance.html.unused create mode 100755 utils/feed_fetch.sh create mode 100755 utils/feed_fetch_silent.sh diff --git a/.gitignore b/.gitignore index f1d78538f..18ca6e8a9 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ build/ **/*.perspectivev* *.pbxuser data/ +logs diff --git a/media/maintenance.html.unused b/media/maintenance.html.unused new file mode 100644 index 000000000..1e79995f3 --- /dev/null +++ b/media/maintenance.html.unused @@ -0,0 +1,5 @@ +

NewsBlur is upgrading...

+ +

As of Sunday, August 22nd 8:30pm, NewsBlur is going through wonderful backend changes that will make it much, much faster. (PostgreSQL -> MongoDB, for you nerd types.)

+ +

This change will take a few hours. Rest easy knowing I won't sleep until it's done.

diff --git a/utils/feed_fetch.sh b/utils/feed_fetch.sh new file mode 100755 index 000000000..673eaf76e --- /dev/null +++ b/utils/feed_fetch.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +ps aux | grep refresh_feeds | egrep -v grep | awk '{print $2}' | xargs kill > /dev/null 2>&1 +python /home/conesus/newsblur/manage.py refresh_feeds -s & +python /home/conesus/newsblur/manage.py refresh_feeds -s & +python /home/conesus/newsblur/manage.py refresh_feeds -s & +python /home/conesus/newsblur/manage.py refresh_feeds -s & +python /home/conesus/newsblur/manage.py refresh_feeds -s & +python /home/conesus/newsblur/manage.py refresh_feeds -s & diff --git a/utils/feed_fetch_silent.sh b/utils/feed_fetch_silent.sh new file mode 100755 index 000000000..07aba8afc --- /dev/null +++ b/utils/feed_fetch_silent.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +ps aux | grep refresh_feeds | egrep -v grep | awk '{print $2}' | xargs kill > /dev/null 2>&1 +python /home/conesus/newsblur/manage.py refresh_feeds -s > /dev/null 2>&1 & +python /home/conesus/newsblur/manage.py refresh_feeds -s > /dev/null 2>&1 & +python /home/conesus/newsblur/manage.py refresh_feeds -s > /dev/null 2>&1 & +python /home/conesus/newsblur/manage.py refresh_feeds -s > /dev/null 2>&1 & +python /home/conesus/newsblur/manage.py refresh_feeds -s > /dev/null 2>&1 & +python /home/conesus/newsblur/manage.py refresh_feeds -s > /dev/null 2>&1 & +python /home/conesus/newsblur/manage.py refresh_feeds -s > /dev/null 2>&1 & +