~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to README.txt

  • Committer: Martin Albisetti
  • Date: 2008-09-08 22:37:34 UTC
  • mfrom: (218.1.1 loggerhead.doc)
  • Revision ID: argentina@gmail.com-20080908223734-nh4i2v1artjpvwzt
Add alternative insallation notes and mention the --prefix option in README.txt (Marius Kruger)

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
GETTING STARTED
12
12
---------------
13
13
 
14
 
Loggerhead depends on SimpleTAL for templating and Paste for the
15
 
server.  So you need these installed -- on Ubuntu you want the
16
 
'python-simpletal' and 'python-paste' packages installed.  You need
17
 
version 1.2 or newer of Paste.
 
14
Loggerhead depends on 
 
15
1) SimpleTAL for templating.
 
16
   on ubuntu package `sudo apt-get install python-simpletal`
 
17
   or download from http://www.owlfish.com/software/simpleTAL/download.html
 
18
2) Paste for the server. (You need version 1.2 or newer of Paste.) 
 
19
   on ubuntu package `sudo apt-get install python-paste`
 
20
   or use `easy_install Paste`
 
21
3) Paste Deploy  (optional, needed when proxying through Apache)
 
22
   on ubuntu package `sudo apt-get install python-pastedeploy`
 
23
   or use `easy_install PasteDeploy`
18
24
 
19
 
Then simply run the 'serve-branches.py' with the branch you want to
 
25
Then simply run the 'serve-branches' with the branch you want to
20
26
serve on the command line:
21
27
 
22
 
    ./serve-branches.py ~/path/to/branch
 
28
    ./serve-branches ~/path/to/branch
23
29
 
24
30
The script listens on port 8080 so head to http://localhost:8080/ in
25
31
your browser to see the branch.  You can also pass a directory that
36
42
 
37
43
Previous versions of Loggerhead read their configuration from a config
38
44
file.  This mode of operation is still supported by the
39
 
'start-loggerhead.py' script.  A 'loggerhead.conf.example' file is
 
45
'start-loggerhead' script.  A 'loggerhead.conf.example' file is
40
46
included in the source which has comments explaining the various
41
47
options.
42
48
 
43
49
Loggerhead can then be started by running::
44
50
 
45
 
    $ ./start-loggerhead.py
 
51
    $ ./start-loggerhead
46
52
 
47
53
This will run loggerhead in the background, listening on port 8080 by
48
54
default.
49
55
 
50
56
To stop Loggerhead, run::
51
57
 
52
 
    $ ./stop-loggerhead.py
 
58
    $ ./stop-loggerhead
53
59
 
54
60
In the configuration file you can configure projects, and branches per
55
61
project.  The idea is that you could be publishing several (possibly
58
64
included with the source.
59
65
 
60
66
A debug and access log are stored in the logs/ folder, relative to
61
 
the location of the start-loggerhead.py script.
 
67
the location of the start-loggerhead script.
62
68
 
63
69
 
64
70
SERVING LOGGERHEAD FROM BEHIND APACHE
74
80
        ProxyPassReverse http://127.0.0.1:8080/
75
81
    </Location>
76
82
 
77
 
If Paste Deploy is installed, the 'serve-branches.py' script can be
 
83
If Paste Deploy is installed, the 'serve-branches' script can be
78
84
run behind a proxy at the root of a site, but if you're running it at
79
 
some path into the site, you'll need to add a 'prefix' argument to the
80
 
PrefixMiddleware call in the script.  More flexible configuration
81
 
should be added soon...
82
 
 
 
85
some path into the site, you'll need to specify is using '--prefix=/some_path'.
83
86
 
84
87
FILES CHANGED CACHE
85
88
-------------------