The Caktus blog at http://www.caktusgroup.com/blog/2010/03/08/django-and-hudson-ci-day-1/ does a pretty good job explaining the basic steps of getting Hudson up and running. One thing to do after install the Debian package is to change HTTP_PORT to 8081. This way using the Django test dev server, you don't need to remind yourself to change the port # to 8080.
If you setup a virtual domain, you can then setup a reverse proxy with the following Apache config.
ServerAdmin admin@myhost.com ServerName hudson.myhost.com ProxyPass / http://localhost:8081/ ProxyPassReverse / http://localhost:8081/ ProxyRequests Off Order deny,allow Allow from all
Another thing to note is that when using virtualenvwrapper, invoking the 'workon' function within the Hudson script triggers a non-zero exit code. If you invoke the shell script with "#!/bin/bash -ex", the non-zero exit code will cause Hudson to abort prematurely. This Google discussion group at http://groups.google.com/group/python-virtualenv/browse_thread/thread/9f743fe85e68e426 talks about the different ways to resolve the issue within the virtualenvwrapper script but not how you can bypass this issue until virtualenvwrapper is truly fixed. One way to do it is to simply put a "|| true" statement to bypass the issue.
#!/bin/bash -ex source /usr/local/bin/virtualenvwrapper.sh || true workon hudson-dev || true ./run.sh manage.py test setup --settings=settings.hudson
No comments:
Post a Comment