source: main/waeup.diazo/trunk/README.rst @ 10393

Last change on this file since 10393 was 10123, checked in by uli, 12 years ago

Explain sense of raw.ini.

File size: 1.9 KB
Line 
1waeup.diazo
2===========
3
4Diazo support for waeup.kofa.
5
6Diazo 'masquerades' running sites. In our case it gives nearly
7unstyled Kofa sites a nice look, injects twitter bootstrap and more.
8
9Prerequisites:
10
11  You need git installed locally. Also libxslt-dev, libxml-dev, a C
12  compiler like gcc, etc.  No Windows(tm) support.
13
14In short:
15
161) Create a virtual environment (Python 2.6 or 2.7) and activate it::
17
18    $ virtualenv sandbox27
19    $ source sandbox27/bin/activate
20
212) Build diazo and all the stuff in here::
22
23    (sandbox27)$ python bootstrap.py
24    (sandbox27)$ ./bin/buildout
25
26   This also creates a runnable Grok instance in src/waeup.kofa.
27
283) Start some grok instance on port 8080 and create a kofa instance
29   named `app`. You can use, for instance, the stuff in src/::
30
31    (sandbox27)$ cd src/waeup.kofa
32    (sandbox27)$ python bootstrap.py
33    (sandbox27)$ ./bin/buildout
34    (sandbox27)$ ./bin/kofactl start
35
36   Now login on http://localhost:8080/ (grok/grok) and create an
37   instance called `app`.
38
394) Start diazo::
40
41    (sandbox27)$ cd ../../
42    (sandbox27)$ ./bin/paster serve --reload kofaproxy.ini
43
44  Watch the results on http://localhost:8000/.
45
46The results shown can be modified in kofa/base.xml and
47kofa/theme.html. Changes should be reflected immediately, if you
48started the diazo paster process with the ``--reload`` option.
49
50The machine whose output we want to filter is set in
51`kofaproxy.ini`. In this file we also tell where twitter bootstrap and
52static resources reside (and many more things).
53
54To shutdown Diazo press CTRL-D, to stop Grok change to the
55src/waeup.kofa dir and run::
56
57  (sandbox27)$ ./bin/kofactl stop
58
59Serving Content As-is
60---------------------
61
62The local `raw.ini` paster configuration sets up a Diazo server that
63doesn't actually use Diazo::
64
65    $ ./bin/paster serve raw.ini
66
67This might make sense during migration of an existing site to Diazo.
68
69
70Have fun.
71
Note: See TracBrowser for help on using the repository browser.