Loggerhead -- trying to set up an instance

John Ferlito johnf at inodes.org
Thu Jun 25 07:48:09 BST 2009


On Thu, Jun 25, 2009 at 07:35:28AM +0100, Russel Winder wrote:
> Google isn't really much help and https://launchpad.net/loggerhead isn't
> either . . .
> 
> I thought I would try setting up a Loggerhead server so that people can
> browse the Bazaar branches on my site rather than email me telling me
> there is nothing there (because I store branches with no working tree on
> the webserver).  Jaunty comes with 1.10 which is fairly up to date I
> guess.  However I cannot find any documentation -- other than the
> comments in the example configuration file which are probably fine if
> you know exactly what you are doing.
> 
> What I need is a guide on how to integrate a Loggerhead server into an
> extant Apache server.  I have no doubt the document will be fairly
> short, but it would be nice if something existed.
> 
> Eventually I found http://wiki.flexion.org/LoggerheadServer.html -- an
> expanded version of which could be an excellent document -- especially
> if it were more directly associated with pages relating to Loggerhead;
> i.e. directly linked to from the main Loggerhead pages.
> 
> And while I am feeling grumbly:  Loggerhead appears to not fail when
> there are syntax errors in the configuration file, it just fails to
> render pages.  Actually it seems to fail to render pages full stop.  It
> works fine if Loggerhead is started on an ad hoc basis for a specific
> named on the command line branch (i.e. serve-branches), but fails when
> the configuration file is used (i.e. start-loggerhead), just gives me a
> white page.

So I'm using 1.10 from the bzr ppa
https://launchpad.net/~bzr/+archive/ppa

It comes with an init script so it automatically starts at reboot.

I setup entries in /etc/loggerhead.conf that look something like

[project]
    name = 'Project'
    cachepath = '/srv/bzr/.bzr/loggerhead-files/project'
    auto_publish_folder = '/srv/bzr/devel/project'
    url_prefix = 'bzr://bzr.team.project.com/devel/project'

In apache I simply use mod_proxy like so

<VirtualHost *:80
    ServerName bzr.team.project.com

    <Proxy balancer://bzr>
          BalancerMember http://127.0.0.1:9000
    </Proxy>

    RewriteEngine On
    RewriteRule ^/(.*)$ balancer://bzr%{REQUEST_URI} [P,QSA,L]

</VirtualHost>

No other configuration required.

Cheers,
John


-- 
John
Blog                        http://www.inodes.org/blog
OLPC Friends                     http://olpcfriends.org




More information about the bazaar mailing list