Changes between Version 5 and Version 6 of TracWsgiPlugin


Ignore:
Timestamp:
Apr 9, 2007, 5:25:16 AM (17 years ago)
Author:
anonymous
Comment:

Complete example

Legend:

Unmodified
Added
Removed
Modified
  • TracWsgiPlugin

    v5 v6  
    2323You can check out TracWsgiPlugin from [http://trac-hacks.org/svn/tracwsgiplugin here] using Subversion, or [source:tracwsgiplugin browse the source] with Trac.
    2424
    25 == Example ==
    26 
     25== Examples ==
     26=== Run trac with Paste ===
    2727To run Trac with Paste, put into a PasteDeploy script:
    2828{{{
     
    3838secure = true
    3939}}}
    40 
     40=== Run WSGI webapps inside Trac ===
    4141To run 'myapp' on http://example.com/trac/something and 'thirdapp' on /trac/foobar, put into your trac.ini file:
    4242{{{
     
    4848}}}
    4949
     50=== Complete example ===
     51Add to your trac.ini the following:
     52{{{
     53[app:main]
     54use = egg:WSGITrac#trac
     55path = %(here)s/..
     56
     57[server:main]
     58use = egg:PasteScript#wsgiutils
     59host = 127.0.0.1
     60port = 8080
     61[webapps]
     62foobar = egg:FooBar#foobar
     63}}}
     64
     65Now 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}}}
     69Trac will run on http://localhost:8080. http://localhost:8080/foobar serves the foobar application from FooBar egg
    5070== Recent Changes ==
    5171