Changes between Version 4 and Version 5 of TracIni
- Timestamp:
- May 19, 2008, 10:20:24 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracIni
v4 v5 1 1 = The Trac Configuration File = 2 2 3 [[TracGuideToc]] 3 4 Trac configuration is done by editing the '''`trac.ini`''' config file, located in `<projectenv>/conf/trac.ini`. Changes to the configuration are usually reflected immediately, though changes to the `[components]` or `[logging]` sections will require restarting the web server. You may also need to restart the web server after creating a global configuration file when none was previously present.5 4 6 5 == Global Configuration == 7 6 8 In previous versions, the global configuration was by default located in `$prefix/share/trac/conf/trac.ini` or sometimes /etc/trac/trac.ini depending on the distribution. If you're upgrading, you may want to specify that file to inherit from.7 In versions prior to 0.11, the global configuration was by default located in `$prefix/share/trac/conf/trac.ini` or sometimes /etc/trac/trac.ini depending on the distribution. If you're upgrading, you may want to specify that file to inherit from. 9 8 10 9 Global options will be merged with the environment-specific options, where local options override global options. The options file is specified as follows: … … 14 13 }}} 15 14 15 Note that you can also specify a global option file when creating a new project, by adding the option 16 `--inherit=/path/to/global/options` to [TracAdmin trac-admin]'s `initenv` command. 17 If you would not do this but nevertheless intend to use a global option file with your new environment, 18 you would have to go through the newly generated conf/trac.ini file and delete the entries that would 19 otherwise override those set in the global file. 20 21 16 22 == Reference == 17 23 18 24 This is a brief reference of available configuration options. 19 25 20 [[TracIni]] 26 [[TracIni()]] 27 21 28 22 29 == [components] == #components-section … … 68 75 active.order = 1 69 76 active.css_class = open # CSS class for this interval 77 active.label = in progress # Displayed label for this group 70 78 }}} 71 79 … … 89 97 {{{ 90 98 [svn:externals] 91 http://theirserver.org/svn/eng-soft http://ourserver/viewvc/svn/$path/?pathrev=25914 92 svn://anotherserver.com/tools_repository http://ourserver/trac/support/browser/$path?rev=$rev 99 1 = svn://server/repos1 http://trac/proj1/browser/$path?rev=$rev 100 2 = svn://server/repos2 http://trac/proj2/browser/$path?rev=$rev 101 3 = http://theirserver.org/svn/eng-soft http://ourserver/viewvc/svn/$path/?pathrev=25914 102 4 = svn://anotherserver.com/tools_repository http://ourserver/trac/support/browser/$path?rev=$rev 93 103 }}} 94 104 With the above, the `svn://anotherserver.com/tools_repository/tags/1.1/tools` external will be mapped to `http://ourserver/trac/support/browser/tags/1.1/tools?rev=` (and `rev` will be set to the appropriate revision number if the external additionally specifies a revision, see the [http://svnbook.red-bean.com/en/1.4/svn.advanced.externals.html SVN Book on externals] for more details). 95 105 106 Note that the number used as a key in the above section is purely used as a place holder, as the URLs themselves can't be used as a key due to various limitations in the configuration file parser. 96 107 97 108 ----