12
Loggerhead depends on:
14
1) SimpleTAL for templating.
15
On Ubuntu, ``sudo apt-get install python-simpletal``
16
or download from http://www.owlfish.com/software/simpleTAL/download.html
18
2) simplejson for producing JSON data.
19
On Ubuntu, ``sudo apt-get install python-simplejson``
20
or use `easy_install simplejson`.
22
3) Paste for the server. (You need version 1.2 or newer of Paste.)
23
On Ubuntu, ``sudo apt-get install python-paste``
24
or use `easy_install Paste`
26
4) Paste Deploy (optional, needed when proxying through Apache)
27
On Ubuntu, ``sudo apt-get install python-pastedeploy``
28
or use `easy_install PasteDeploy`
30
5) flup (optional, needed to use FastCGI, SCGI or AJP)
31
On Ubuntu, ``sudo apt-get install python-flup``
32
or use `easy_install flup`
34
Then simply run the 'serve-branches' with the branch you want to
35
serve on the command line:
12
Loggerhead depends on the following Python libraries.:
14
- SimpleTAL for templating.
16
- simplejson for producing JSON data.
18
- Paste for the server. (You need version 1.2 or newer of Paste.)
20
- Paste Deploy (optional, needed when proxying through Apache)
22
- flup (optional, needed to use FastCGI, SCGI or AJP)
25
Installing Dependencies Using Ubuntu Packages
26
#############################################
30
$ sudo apt-get install python-simpletal
31
$ sudo apt-get install python-simplejson
32
$ sudo apt-get install python-paste
33
$ sudo apt-get install python-pastedeploy
34
$ sudo apt-get install python-flup
36
Installing Dependencies Using :command:`easy_install`
37
#####################################################
42
-f http://www.owlfish.com/software/simpleTAL/py2compatible/download.html \
44
$ easy_install simplejson
46
$ easy_install PasteDeploy
50
Running the Standalone Loggerhead Server
51
----------------------------------------
53
After installing all the dependencies, you should be able to run
54
:command:`serve-branches` with the branch you want to serve on the
39
59
./serve-branches ~/path/to/branch
41
The script listens on port 8080 so head to http://localhost:8080/ in
42
your browser to see the branch. You can also pass a directory that
43
contains branches to the script, and it will serve a very simple
44
directory listing at other pages.
61
By default, the script listens on port 8080, so head to
62
http://localhost:8080/ in your browser to see the branch.
64
You can also pass a directory that contains branches to the script,
65
and it will serve a very simple directory listing at other pages.
46
67
You may update the Bazaar branches being viewed at any time.
47
68
Loggerhead will notice and refresh, and Bazaar uses its own branch
48
69
locking to prevent corruption.
71
See :doc:`serve-branches` for all command line options.
73
Running Loggerhead as a Daemon
74
------------------------------
50
76
To run loggerhead as a linux daemon:
52
1) Copy loggerheadd to ``/etc/init.d``
78
1) Copy the ``loggerheadd`` scipt to ``/etc/init.d``
82
$ sudo cp ./loggerheadd /etc/init.d
54
84
2) Edit the file to configure where your loggerhead is installed, and which
55
85
serve-branches options you would like.
89
$ sudo vim /etc/init.d/loggerheadd
57
91
3) Register the service
60
a) on upstart based systems like Ubuntu run:
61
``update-rc.d loggerheadd defaults``
63
b) on Sysvinit based systems like Centos or SuSE run:
64
``chkconfig --add loggerheadd``
67
Loggerhead as a Bazaar Plugin
68
-----------------------------
93
a) on upstart based systems like Ubuntu run:
97
$ sudo update-rc.d loggerheadd defaults
99
b) on Sysvinit based systems like Centos or SuSE run:
103
$ sudo chkconfig --add loggerheadd
106
Using Loggerhead as a Bazaar Plugin
107
------------------------------------
70
109
This branch contains experimental support for using Loggerhead as a Bazaar
71
110
plugin. To use it, place the top-level Loggerhead directory (the one