Edgewall Software

Changes between Version 2 and Version 3 of 1.3/TracEnvironment


Ignore:
Timestamp:
Aug 24, 2017, 4:21:00 AM (7 years ago)
Author:
Ryan J Ollos
Comment:

Document #12891.

Legend:

Unmodified
Added
Removed
Modified
  • 1.3/TracEnvironment

    v2 v3  
    1717`trac-admin` will ask you for the name of the project and the [#DatabaseConnectionStrings database connection string].
    1818
     19A base configuration can be specified using the `--inherit` or `--config` options. The `--inherit` option can be specified one or more times to utilize a [TracIni#GlobalConfiguration global configuration]. The options specified in a `--config` file will be used to override the defaults when initializing `trac.ini`. See below for an [#SourceCodeRepository example] of defining repositories in a configuration file.
     20
    1921=== Useful Tips
    2022
     
    2527 - Non-ascii environment paths are not supported.
    2628
    27  - TracPlugins located in a [TracIni#inherit-plugins_dir-option shared plugins directory] that is defined in an [TracIni#GlobalConfiguration inherited configuration] are not enabled by default, in contrast to plugins in the environment `plugins` directory. Hence, if they need to create extra tables, for example, the tables will not be created during environment creation and you'll need to [TracUpgrade#UpgradetheTracEnvironment upgrade the environment]. Alternatively you can avoid the need to upgrade the environment by explicitly enabling the plugin in the inherited configuration, or in a configuration file using the `--config` option. See TracAdmin#FullCommandReference for more information.
     29 - TracPlugins located in a [TracIni#inherit-plugins_dir-option shared plugins directory] that is defined in an [TracIni#GlobalConfiguration inherited configuration] are not enabled by default, in contrast to plugins in the environment `plugins` directory. Hence, if they need to create extra tables, for example, the tables will not be created during environment creation and you'll need to [TracUpgrade#UpgradetheTracEnvironment upgrade the environment]. Alternatively you can avoid the need to upgrade the environment by explicitly enabling the plugin(s) in a configuration file using the `--inherit` or `--config` option. See TracAdmin#FullCommandReference for more information.
    2830
    2931{{{#!div style="border: 1pt dotted; margin: 1em;"
     
    105107A single environment can be connected to more than one repository. However, by default Trac is not connected to any source code repository, and the ''Browse Source'' navigation item will not be displayed. There are several ways to connect repositories to an environment, see TracRepositoryAdmin.
    106108
     109Repositories can be defined at the time of environment creation by specifying a configuration file to the `initenv` command using the `--config` or `--inherit` options. Cached repositories will be synchronized if the repository connector(s) are enabled. Example:
     110
     111{{{#!sh
     112$ trac-admin $ENV initenv --config=config.ini
     113$ cat config.ini
     114[components]
     115tracopt.versioncontrol.* = enabled
     116
     117[repositories]
     118.dir = /path/to/default/type/repos
     119repos1.type = git
     120repos1.dir = /path/to/git/repos
     121repos2.type = svn
     122repos2.dir = /path/to/svn/repos
     123}}}
     124
    107125== Directory Structure
    108126