annotate contrib/sawmill/README @ 501:fd52f1e231ba

Fix typo in a comment
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 25 Oct 2010 08:17:31 +0000
parents 93d66243bce7
children
rev   line source
452
333232953771 Initial check-in of sawmill a simple mod_python based
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
1 A simple mod_python based web application to render the
333232953771 Initial check-in of sawmill a simple mod_python based
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
2 build reports of treepkg.
453
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
3
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
4 Tested on Debian 5.0 Lenny
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
5
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
6 # apt-get install apache2
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
7 # apt-get install libapache2-mod-python
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
8 # apt-get install apt-get install python-lxml
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
9
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
10 Copy web dir into a place which is served by apache.
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
11 Create an .htaccess file in web:
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
12 ---8<---
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
13 AddHandler mod_python .py
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
14 DirectoryIndex index.py
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
15 PythonHandler mod_python.publisher
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
16 --->8---
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
17
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
18 Create sub directories in web/treepkgs for each
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
19 treepkg which reports should be served. Edit
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
20 the treepkg.xml file in these directories to
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
21 provide some extra information about the treepkgs.
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
22 See web/treepkgs/demo as an example.
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
23
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
24 Use rsync at the treepkg side to push the
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
25 reports to the corresponding treepkgs directory:
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
26
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
27 $ rsync -avz \
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
28 --exclude 'debian' --exclude 'src' \
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
29 --exclude 'binary' --exclude '*checkout*' \
dde2a0b68dc7 Improved README of sawmill a bit.
Sascha Teichmann <teichmann@intevation.de>
parents: 452
diff changeset
30 --exclude '*.html' $TREE_PKG/mill/tracks/ $DEST/tracks
492
93d66243bce7 sawmill: Added RSS feed generator.
Sascha Teichmann <teichmann@intevation.de>
parents: 453
diff changeset
31
93d66243bce7 sawmill: Added RSS feed generator.
Sascha Teichmann <teichmann@intevation.de>
parents: 453
diff changeset
32 If you want to generate RSS feeds for the build errors:
93d66243bce7 sawmill: Added RSS feed generator.
Sascha Teichmann <teichmann@intevation.de>
parents: 453
diff changeset
33
93d66243bce7 sawmill: Added RSS feed generator.
Sascha Teichmann <teichmann@intevation.de>
parents: 453
diff changeset
34 # apt-get install python-pyrss2gen
93d66243bce7 sawmill: Added RSS feed generator.
Sascha Teichmann <teichmann@intevation.de>
parents: 453
diff changeset
35
93d66243bce7 sawmill: Added RSS feed generator.
Sascha Teichmann <teichmann@intevation.de>
parents: 453
diff changeset
36 copy bin/generate-rss.py to a place where it can be run as a cronjob.
93d66243bce7 sawmill: Added RSS feed generator.
Sascha Teichmann <teichmann@intevation.de>
parents: 453
diff changeset
37 Adjust BASE_URL in the to fit your installation.
93d66243bce7 sawmill: Added RSS feed generator.
Sascha Teichmann <teichmann@intevation.de>
parents: 453
diff changeset
38
93d66243bce7 sawmill: Added RSS feed generator.
Sascha Teichmann <teichmann@intevation.de>
parents: 453
diff changeset
39 ---8<---
93d66243bce7 sawmill: Added RSS feed generator.
Sascha Teichmann <teichmann@intevation.de>
parents: 453
diff changeset
40 */7 * * * * /where/you/placed/generate-rss.py /where/you/placed/buildlogs/treepkgs
93d66243bce7 sawmill: Added RSS feed generator.
Sascha Teichmann <teichmann@intevation.de>
parents: 453
diff changeset
41 --->8---
93d66243bce7 sawmill: Added RSS feed generator.
Sascha Teichmann <teichmann@intevation.de>
parents: 453
diff changeset
42
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)