Miro Community on Heroku

53 views
Skip to first unread message

Jackson Gothe-Snape

unread,
May 18, 2013, 11:03:29 PM5/18/13
to miro-communit...@googlegroups.com
Hi Stephen, all,

I have got Miro Community working well with Heroku (the site is at hdball.com). The only problem is that when a new Heroku 'version' is created, the public site's content gets wiped. The database is still intact though and is viewable in the admin. Making a simple change to one video in the Bulk Edit admin screen reinstates all public content.

I'm still working through the Miro Community code, but I believe it might have something to do with the following:
Caching - Initially I thought the locmem backend setting might have been a problem. Since then I have installed a Heroku cache add-on Memcachier and updated the backend in settings.py. Didn't seem to fix the problem though.
Video feeds/feed generation - perhaps NormalizedVideoList is not being run initially?

Other contenders I haven't looked into: DB indexes and celery tasks.

I have made a rudimentary workaround by saving each Video as part of the index view, which means the first visitor to the index.html site after a new Heroku version is created 'refreshes' the public content. However, this solution obviously is slow, inefficient and won't help if the first visitor after a new version lands on a page other than index.html.

Any suggestions would be appreciated.

Regards,
Jackson

Stephen Burrows

unread,
May 22, 2013, 8:37:09 PM5/22/13
to miro-communit...@googlegroups.com
Hi, Jackson,

Miro Community currently leans pretty heavily on django-haystack; I'm not sure how Heroku handles that, but my guess is that the information is currently stored on the local filesystem with whoosh. That information would (I am guessing) be lost on a new heroku instance. I'd go further and hypothesize that only the videos on the first page of the bulk edit page in the admin get reindexed when you make changes to one of the videos. (The bulk edit page currently re-saves all the videos on the page, which would trigger index updates for all of them.)

--Stephen



--
You received this message because you are subscribed to the Google Groups "Miro Community Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to miro-community-deve...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages