Changes between Version 5 and Version 6 of TracWsgiPlugin
- Timestamp:
- Apr 9, 2007, 5:25:16 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracWsgiPlugin
v5 v6 23 23 You can check out TracWsgiPlugin from [http://trac-hacks.org/svn/tracwsgiplugin here] using Subversion, or [source:tracwsgiplugin browse the source] with Trac. 24 24 25 == Example ==26 25 == Examples == 26 === Run trac with Paste === 27 27 To run Trac with Paste, put into a PasteDeploy script: 28 28 {{{ … … 38 38 secure = true 39 39 }}} 40 40 === Run WSGI webapps inside Trac === 41 41 To run 'myapp' on http://example.com/trac/something and 'thirdapp' on /trac/foobar, put into your trac.ini file: 42 42 {{{ … … 48 48 }}} 49 49 50 === Complete example === 51 Add to your trac.ini the following: 52 {{{ 53 [app:main] 54 use = egg:WSGITrac#trac 55 path = %(here)s/.. 56 57 [server:main] 58 use = egg:PasteScript#wsgiutils 59 host = 127.0.0.1 60 port = 8080 61 [webapps] 62 foobar = egg:FooBar#foobar 63 }}} 64 65 Now you can run trac with whatever WSGI server you have (this example uses WSGIUtil server) by issuing: 66 {{{ 67 $ paster serve /path/to/your/trac.ini 68 }}} 69 Trac will run on http://localhost:8080. http://localhost:8080/foobar serves the foobar application from FooBar egg 50 70 == Recent Changes == 51 71