[[PageOutline(2-5,Contents,pullout)]] = WSGI hacks for Trac = {{{#!box warn **Notice:** This plugin is deprecated. }}} == Description == * Provides a Paste application entry point with some configuration options to run Trac * Allows to hook other WSGI apps into trac URL space, re-using trac.ini for [http://pythonpaste.org/deploy/#from-the-user-perspective PasteDeploy configuration] == Bugs/Feature Requests == Existing bugs and feature requests for TracWsgiPlugin are [report:9?COMPONENT=TracWsgiPlugin here]. If you have any issues, create a [/newticket?component=TracWsgiPlugin new ticket]. == Download == Download the zipped source from [export:tracwsgiplugin here]. == Source == You can check out TracWsgiPlugin from [/svn/tracwsgiplugin here] using Subversion, or [source:tracwsgiplugin browse the source] with Trac. == Examples == === Run trac with Paste === To run Trac with Paste, put into a PasteDeploy script: {{{#!ini [app:main] use = egg:WSGITrac#trac path = /path/to/your/trac/env }}} To serve all projects from /path/to/trac/env/parent via HTTPS use: {{{#!ini [app:projects] use = egg:WSGITrac#tracs path = /path/to/trac/env/parent secure = true }}} NOTE: REMOTE_USER should be set BEFORE calling WSGITrac. WIKI_VIEW permission is needed to list the project in the index. === Run WSGI webapps inside Trac === To run 'myapp' on http://example.com/trac/something and 'thirdapp' on /trac/foobar, put into your trac.ini file: {{{#!ini [webapps] something = myapp foobar = config:/path/to/some/paste.ini#thirdapp [app:myapp] use = egg:YourEgg#yourapp }}} === Complete example === Add to your trac.ini the following: {{{#!ini [app:main] use = egg:WSGITrac#trac path = %(here)s/.. [server:main] use = egg:PasteScript#wsgiutils host = 127.0.0.1 port = 8080 [webapps] foobar = egg:FooBar#foobar }}} Now you can run trac with whatever WSGI server you have (this example uses WSGIUtil server) by issuing: {{{#!sh $ paster serve /path/to/your/trac.ini }}} Trac will run on http://localhost:8080. http://localhost:8080/foobar serves the foobar application from FooBar egg == Recent Changes == [[ChangeLog(tracwsgiplugin, 3)]] == Author/Contributors == '''Author:''' [wiki:martinpaljak] [[BR]] '''Maintainer:''' //none// [[BR]] '''Contributors:'''