Skip to content
Browse files

More .gitignore, and adding cron jobs to fetch feeds. These will be r…

…eplaced by celery within the next day or two.
  • Loading branch information...
1 parent cb59861 commit e9f5fc3350273803c280bd74bec5d8aa88192349 @samuelclay committed
Showing with 26 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +5 −0 media/maintenance.html.unused
  3. +9 −0 utils/feed_fetch.sh
  4. +11 −0 utils/feed_fetch_silent.sh
View
1 .gitignore
@@ -16,3 +16,4 @@ build/
**/*.perspectivev*
*.pbxuser
data/
+logs
View
5 media/maintenance.html.unused
@@ -0,0 +1,5 @@
+<h1>NewsBlur is upgrading...</h1>
+
+<p>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.)</p>
+
+<p>This change will take a few hours. Rest easy knowing I won't sleep until it's done.</p>
View
9 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 &
View
11 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 &
+

0 comments on commit e9f5fc3

Please sign in to comment.
Something went wrong with that request. Please try again.