Sphinx configuration for Django on Heroku

Django support's Avatar

Django support

13 Jan, 2012 11:48 PM

I'm running a Django site on Heroku, and would like to use Flying Sphinx. Is there documentation on how to configure django-sphinx for that scenario?

Thanks,
-Peter

  1. Support Staff 2 Posted by Pat Allan on 16 Jan, 2012 10:18 AM

    Pat Allan's Avatar

    Hi Peter

    At this point there isn't. I'd love to be able to support Django, but the catch is dealing with Heroku's shared PostgreSQL databases.

    For Ruby sites, there is the flying-sphinx gem, and that actually sets up a reverse SSH port forward to allow the Flying Sphinx servers to access the database temporarily when Sphinx is indexing. That's the hard part of what would need to be implemented on the Django/Python side of things - the rest is a few API calls to send the Sphinx configuration through, request indexing to happen and start/stop the daemon, plus reading in the Sphinx connection details via the environment variables.

    I'm not at all experienced with Django or Python, mind you, which is why such support is not something I can whip up quickly. Do you know of any options to manage SSH connections with reverse port forwards in Python?

    Cheers

    Pat

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac