mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Merge branch 'master' of github.com:samuelclay/NewsBlur
* 'master' of github.com:samuelclay/NewsBlur: Adding /load_feeds to repeat visitor tracking, since the iPhone app never hits refresh_feeds. Adding celery granularity to fabfile.
This commit is contained in:
commit
5842b11347
3 changed files with 10 additions and 6 deletions
|
@ -8,7 +8,7 @@ from django.template import Template, Context
|
|||
|
||||
class LastSeenMiddleware(object):
|
||||
def process_response(self, request, response):
|
||||
if ((request.path in ('/', '/reader/refresh_feeds'))
|
||||
if ((request.path in ('/', '/reader/refresh_feeds', '/reader/load_feeds'))
|
||||
and hasattr(request, 'user')
|
||||
and request.user.is_authenticated()):
|
||||
hour_ago = datetime.datetime.utcnow() - datetime.timedelta(minutes=60)
|
||||
|
|
14
fabfile.py
vendored
14
fabfile.py
vendored
|
@ -116,11 +116,17 @@ def staging_full():
|
|||
|
||||
@roles('task')
|
||||
def celery():
|
||||
with cd(env.NEWSBLUR_PATH):
|
||||
run('git pull')
|
||||
run('git pull')
|
||||
celery_stop()
|
||||
celery_start()
|
||||
|
||||
@roles('task')
|
||||
def celery_stop():
|
||||
with cd(env.NEWSBLUR_PATH):
|
||||
run('git pull')
|
||||
celery_stop()
|
||||
celery_start()
|
||||
|
||||
@roles('task')
|
||||
def celery_stop():
|
||||
with cd(env.NEWSBLUR_PATH):
|
||||
|
@ -135,11 +141,9 @@ def celery_start():
|
|||
run('tail logs/newsblur.log')
|
||||
|
||||
@roles('task')
|
||||
def force_celery():
|
||||
def kill_celery():
|
||||
with cd(env.NEWSBLUR_PATH):
|
||||
run('git pull')
|
||||
run('ps aux | grep celeryd | egrep -v grep | awk \'{print $2}\' | sudo xargs kill -9')
|
||||
# run('sudo supervisorctl start celery && tail logs/newsblur.log')
|
||||
|
||||
def compress_media():
|
||||
with cd('media/js'):
|
||||
|
|
BIN
media/img/mobile/iphone_logo_512.png
Normal file
BIN
media/img/mobile/iphone_logo_512.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
Loading…
Add table
Reference in a new issue