Changes between Version 3 and Version 4 of TestManagerForTracPluginQuickSetup


Ignore:
Timestamp:
May 11, 2011, 12:45:11 PM (13 years ago)
Author:
Roberto Longobardi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TestManagerForTracPluginQuickSetup

    v3 v4  
    11= Quick startup guide for Linux =
    22
    3 This guide will help you setup a quick and dirty environment with Apache, modwsgi and the Test Manager plugin in a few minutes.
     3This guide will help you ''setup a quick and dirty environment'' with '''Apache''', '''modwsgi''' and the '''Test Manager''' plugin in a few minutes.
     4Security is based on Apache password file, with basic authentication.
    45
    56Run every command as root. The example takes into account a freshly installed Debian:
     
    1213python setup.py install
    1314}}}
    14  3. Install Trac 0.12.2 using the now available easy_install:
     15 3. !Install Trac 0.12.2 using the now available easy_install:
    1516{{{
    1617easy_install Trac
     
    2425trac-admin /var/lib/trac/foo initenv
    2526}}}
    26  6. Create a password file for apache authentication, with an "admin" and a "roberto" users:
     27 6. Create a password file for apache authentication, for example with an "admin" and a "roberto" users:
    2728{{{
    2829htpasswd -c /var/lib/trac/foo/conf/passwd admin
    2930htpasswd /var/lib/trac/foo/conf/passwd roberto
    3031}}}
    31  7. Grant anonymous TRAC_ADMIN permissions:
     32 7. Grant the anonymous user TRAC_ADMIN permissions:
    3233{{{
    3334trac-admin /var/lib/trac/foo permission add anonymous TRAC_ADMIN
     
    3536 8. Run trac through tracd just to see everything worked:
    3637{{{
    37 tracd --port 8000 /var/lib/trac/foo
     38tracd -r --port 8000 /var/lib/trac/foo
    3839}}}
    3940 9. Set trace level to DEBUG in trac, and log to file, using the admin panel. The admin panel can be accessed from Trac's navigation bar.
    40  10. Configure apache and wsgi using exactly the info and paths Stefan provided.
     41{{{
     42localhost:8000/foo/admin
     43}}}
     44 10. Configure apache and wsgi as follows:
     45[[BR]]
     46'Snippet into apache2.conf:'
     47{{{
     48        WSGIScriptAlias /trac /var/lib/trac/foo/trac.wsgi
     49        <Directory /var/lib/trac/foo/apache>
     50                WSGIApplicationGroup %{GLOBAL}
     51                Order deny,allow
     52                Allow from all
     53        </Directory>
     54        <Location /trac>
     55                AuthType Basic
     56                AuthName "trac"
     57                AuthUserFile /var/lib/trac/foo/conf/passwd
     58                Require valid-user
     59        </Location>
     60}}}
     61[[BR]]
     62'/var/lib/trac/foo/trac.wsgi:'
     63{{{
     64import os
     65
     66os.environ['TRAC_ENV'] = '/var/lib/trac/foo'
     67os.environ['PYTHON_EGG_CACHE'] = '/var/lib/trac/foo/eggs'
     68
     69import trac.web.main
     70application = trac.web.main.dispatch_request
     71}}}
     72[[BR]]
    4173 11. Grant everyone 777 on /var/lib/trac:
    4274{{{
     
    4880}}}
    4981 13. Verify trac was up and running, with basic authentication working, using the browser.
    50  14. Download the egg files for the TestManagerForTracPlugin from sourceforge and extract the archive.
    51  15. Open your browser to the foo trac project, on the admin panel, and install TracGenericClassPlugin from the first egg file. Note: the order in which you install the plugins is important.
     82 14. Download the egg files for the TestManagerForTracPlugin from sourceforge and extract the archive:
     83{{{
     84sourceforge.net/projects/testman4trac/files/
     85}}}
     86 15. Open your browser to the foo trac project, on the admin panel {{{http://localhost/trac/foo/admin}}}, and install TracGenericClassPlugin from the first egg file. Note: the order in which you install the plugins is important.
    5287 16. Install the TracGenericWorkflowPlugin the same way. This asks for a database upgrade.
    5388 17. To do it, open a command console as root and fire the command displayed in the browser. It should be something like the following:
     
    71106}}}
    72107 23. Refresh your browser. The trac admin page should show the three installed plugins.
    73  24. Click on the Test Manager tab in Trac's top navigation bar to start using the new plugins.
     108 24. Click on the Test Manager tab in Trac's top navigation bar to start using the new plugin.
     109