Failed attempts
First step is to create the deliverance setup. Doing it as http://deliverance.openplans.org/quickstart.html tells me fails however. I get some problems with compiling lxml. Great:
...
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC \
-I/home/joerg/projects/deliverance/DelivTest/build/lxml/build/tmp/libxml2/include/libxml2 \
-I/home/joerg/projects/deliverance/DelivTest/build/lxml/build/tmp/libxml2/include/libxslt \
-I/home/joerg/projects/deliverance/DelivTest/build/lxml/build/tmp/libxml2/include/libexslt \
-I/usr/include/python2.6 -c src/lxml/lxml.etree.c -o build/temp.linux-i686-2.6/src/lxml/lxml.etree.o -w
src/lxml/lxml.etree.c:138:26: error: libxslt/xslt.h: No such file or directory
...
(lines broken for readability)
Hurray. I try this with python2.6, python2.5, with --no-site-packages and without. Always the same.
Next try: cheeseshop to the rescue: http://pypi.python.org/pypi/Deliverance/0.3c2. Unpack, go into it, do a
virtualenv -p /usr/bin/python2.5 --no-site-packages
./bin/python bootstrap.py
./bin/buildout
The last one fails as well, but I uncomment the first lines of the buildout.cfg:
[buildout]
extends =
lxml.cfg
parts = test coverage docs pylint
unzip = true
develop = .
....
Now the ./bin/buildout works fine. But now, what? How do I get the delivance proxy. Seems not to work. Mmmh, google to the rescue, maybe?
Successfully getting deliverance to run
Not quite, lxml still makes problems. But it seems that the following works:
virtualenv deliverance
cd deliverance
source bin/activate
easy_install DevAuth
wget http://pypi.python.org/packages/source/D/Deliverance/Deliverance-0.3c2.tar.gz
tar -xzf Deliverance-0.3c2.tar.gz
cd Deliverance-0.3c2/
python setup.py install
cd ..
rm -Rf Deliverance-0.3c2*
./bin/paster create -t deliverance thehub
...
Enter host (The host/port to serve on) ['localhost:8000']: 0.0.0.0:8000
Enter proxy_url (The main site to connect/proxy to) ['http://localhost:8080']: http://hubspacedev.the-hub.net/public
Enter proxy_rewrite_links (Rewrite links from sub_host?) ['n']: y
Enter password (The password for the deliverance admin console) ['']: ******
Enter theme_url (A URL to pull the initial theme from (optional)) ['']: http://hubspacedev.the-hub.net/public/
...
./bin/deliverance-proxy thehub/etc/deliverance.xml
This at least boots up. My original configuration did not work, so I changed the theme/theme.html to:
<html xmlns="http://www.w3.org/1999/xhtml"><head></head>
<body>
<div id='content' />
</body></html>
and the etc/deliverance.xml to
...
<proxy path="/">
<dest href="http://baach.de/" />
<response rewrite-links="1" />
</proxy>
...
the line
<replace content="children:#content" theme="children:#content" />
seems to trigger some form of replacement. Thats a good start ;-)