Create a app factory wrapper script called viewcvs_wsgi.py
from paste import cgiapp
def app_factory(global_config, **local_config):
viewcvs_app = cgiapp.CGIApplication(global_config, script, path=None, include_os_environ=True, query_string=None)
Create a Paste Deploy configuration file called viewcvs.ini
paste.app_factory = viewcvs_wsgi:app_factory
script = "/usr/local/viewcvs-0.9.4/cgi/viewcvs.cgi"
use = egg:PasteScript#wsgiutils
host = 192.168.1.1
port = 8082
Start the WSGIUtils webserver using paster
paster server viewcvs.ini
Point a browser to the URL and browse the CVS repository.
Apart from images not displaying everything else worked as normal. Now why would I want to do this? Well it means I can now run viewcvs under IIS as an ISAPI extension using my isapi_wsgi adaptor. But thats a future blog entry.