Changes between Version 5 and Version 6 of TracEnvironment


Ignore:
Timestamp:
Mar 19, 2010, 10:16:03 AM (12 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracEnvironment

    v5 v6  
    1010}}}
    1111
    12 [wiki:TracAdmin trac-admin] will ask you for the name of the project, the
    13 database connection string (explained below), and the type and path to
    14 your source code repository.
     12[wiki:TracAdmin trac-admin] will ask you for the name of the project and the
     13database connection string (explained below).
    1514
    1615''Note: The web server user will require file system write permission to
     
    9796== Source Code Repository ==
    9897
    99 You'll first have to provide the ''type'' of your repository (e.g. `svn` for Subversion,
    100 which is the default), then the ''path'' where the repository is located.
     98Since version 0.12, one Trac environment can be tied to more than one repository. There are many different ways to add repositories to an environment, see TracRepositoryAdmin. This page also details the various attributes that can be set on a repository (like `type`, `url`, `description`).
    10199
    102 If you don't want to use Trac with a source code repository, simply leave the ''path'' empty
    103 (the ''type'' information doesn't matter, then).
     100If you don't want to use Trac with any source code repository, at creation time simply leave the ''path'' empty
     101(the ''type'' information doesn't matter in this case). Then you also need to disable the `trac.versioncontrol.*` components:
     102{{{
     103[components]
     104trac.versioncontrol.* = disabled
     105}}}
    104106
    105107For some systems, it is possible to specify not only the path to the repository,
     
    108110Trac supports this; for other types, check the corresponding plugin's documentation.
    109111
    110 Example of a configuration for a Subversion repository:
     112Example of a configuration for a Subversion repository used as the default repository:
    111113{{{
    112114[trac]
     
    133135 * `db`
    134136   * `trac.db` - The SQLite database (if you're using SQLite).
    135  * `htdocs` - directory containing web resources, which can be referenced in Genshi templates. '''''(0.11 only)'''''
     137 * `htdocs` - directory containing web resources, which can be referenced in Genshi templates. '''''(since 0.11)'''''
    136138 * `log` - default directory for log files, if logging is turned on and a relative path is given.
    137  * `plugins` - Environment-specific [wiki:TracPlugins plugins] (Python eggs, since [trac:milestone:0.10 0.10])
    138  * `templates` - Custom Genshi environment-specific templates. '''''(0.11 only)'''''
     139 * `plugins` - Environment-specific [wiki:TracPlugins plugins] (Python eggs or single file plugins, since [trac:milestone:0.10 0.10])
     140 * `templates` - Custom Genshi environment-specific templates. '''''(since 0.11)'''''
    139141   * `site.html` - method to customize header, footer, and style, described in TracInterfaceCustomization#SiteAppearance
    140  * ''`templates` - Custom [trac:ClearSilver ClearSilver] environment-specific templates. '''(0.10 only)''' ''
    141    * ''`site_css.cs` - Custom CSS rules.''
    142    * ''`site_footer.cs` - Custom page footer.''
    143    * ''`site_header.cs` - Custom page header.''
    144  * ''`wiki-macros` - Environment-specific [WikiMacros Wiki macros]. '''(0.10 only)''' ''
    145142
    146   '''Note: don't confuse a Trac environment directory with the source code repository directory.
    147 It happens that the above structure is loosely modelled after the Subversion repository directory
    148 structure, but they are not and ''must not'' be located at the same place.'''
     143'''Caveat:''' ''don't confuse a Trac environment directory with the source code repository directory.''
     144
     145This is a common beginners' mistake.
     146It happens that the structure for a Trac environment is loosely modelled after the Subversion repository directory
     147structure, but those are two disjoint entities and they are not and ''must not'' be located at the same place.
    149148
    150149----
    151150See also: TracAdmin, TracBackup, TracIni, TracGuide
     151