Edgewall Software

Changes between Version 20 and Version 21 of 1.3/TracUpgrade


Ignore:
Timestamp:
Aug 29, 2017, 6:27:12 PM (7 years ago)
Author:
Ryan J Ollos
Comment:

Minor changes.

Legend:

Unmodified
Added
Removed
Modified
  • 1.3/TracUpgrade

    v20 v21  
    66== Instructions
    77
    8 Typically, there are seven steps involved in upgrading to a newer version of Trac:
     8There are seven recommended steps for upgrading to a newer version of Trac:
    99
    1010=== 1. Check your plugins
     
    1212Check whether your plugins are compatible with the version of Trac that you are upgrading to. Obsolete plugins listed in the [#VersionSpecificSteps version specific steps] below should be uninstalled or disabled.
    1313
    14 If you are upgrading to a minor release, plugin compatibility is usually not a concern because the Trac API typically does not change, and major features are not introduced, for minor releases.
     14If you are upgrading to a minor release, plugin compatibility is usually not a concern because the Trac API rarely changes, and major features are usually not introduced, for minor releases.
    1515
    1616If your plugins are installed from [https://trac-hacks.org trac-hacks.org] you can check compatibility by looking for a tag on the project page corresponding to a major release (e.g. `1.2`). If you are unsure, you'll want to contact the plugin author or ask on the [trac:MailingList MailingList].
    1717
    18 If you are running several Trac plugins it is good to test the upgrade and site functionality in a staging instance of your site before upgrading your production instance. Remember, plugin authors are responsible for Trac version compatibility and plugins can interact in unexpected ways. Your Trac instance may have a unique combination of plugins and therefore it's a good idea to do some verification testing when making any changes to your site.
     18If you are running several Trac plugins it is good to test the upgrade and plugin functionality in a staging instance of your site before upgrading your production instance. Remember, plugin authors are responsible for Trac version compatibility and plugins can interact in unexpected ways. Your Trac instance may have a unique combination of plugins and therefore it's advised that you do some verification testing when making any changes to your site.
    1919
    2020=== 2. Bring your server off-line
     
    4040}}}
    4141
    42 You should also upgrade dependencies so they are compliant with the [TracInstall#Dependencies required versions] and upgrade Trac plugins.
     42You should also upgrade dependencies so they are compliant with the [TracInstall#Dependencies required versions].
    4343
    4444=== 4. Upgrade the Trac Environment #UpgradetheTracEnvironment
     
    5959=== 5. Update the Trac Documentation === #UpdatetheTracDocumentation
    6060
    61 By default, every [TracEnvironment Trac environment] includes a copy of the Trac documentation for the installed version. However, to keep the included documentation in sync with the installed version of Trac, use the following [TracAdmin trac-admin] command to upgrade the documentation:
     61By default, every [TracEnvironment Trac environment] includes a copy of the Trac documentation for the installed version. To keep the documentation in sync with the installed version of Trac, use the following [TracAdmin trac-admin] command to upgrade the documentation:
    6262{{{#!sh
    6363$ trac-admin /path/to/projenv wiki upgrade
     
    7373}}}
    7474
    75 Before refreshing, it is recommended that you remove the directory in which your static resources are deployed. The directory location depends on the choice you made during installation. This cleanup is not mandatory, but makes it easier to troubleshoot issues later on, as your installation is uncluttered by code or templates from a previous release that is not used anymore. As usual, make a backup before deleting the directory.
     75Before refreshing, it is recommended that you remove the directory in which your static resources are deployed. The directory location depends on the choice you made during installation. This cleanup is not mandatory, but makes it easier to troubleshoot issues later on, as your installation is uncluttered by unused assets from a previous release. As usual, make a backup before deleting the directory.
    7676
    7777{{{#!div style="border: 1pt dotted; margin: 1em"
     
    230230=== Customized Templates
    231231
    232 Trac supports customization of its templates by placing copies of the templates in the `<env>/templates` folder of your [TracEnvironment environment] or in a common location specified in the [[TracIni#GlobalConfiguration| [inherit] templates_dir]] configuration setting. If you choose to do so, be aware that you will need to repeat your changes manually on a copy of the new templates when you upgrade to a new release of Trac (even a minor one), as the templates will likely evolve. So keep a diff around.
     232Trac supports customization of its templates by placing copies of the templates in the `<env>/templates` folder of your [TracEnvironment environment] or in a common location specified in the [[TracIni#GlobalConfiguration| [inherit] templates_dir]] configuration setting. If you choose to customize the templates, be aware that you will need to repeat your changes on a copy of the new templates when you upgrade to a new release of Trac (even a minor one), as the templates will evolve. So keep a diff around.
    233233
    234234The preferred way to perform TracInterfaceCustomization is a custom plugin doing client-side !JavaScript transformation of the generated output, as this is more robust in case of changes: we usually won't modify an element `id` or change its CSS `class`, and if we have to do so, this will be documented in the [trac:TracDev/ApiChanges] pages.
     
    236236=== !ZipImportError
    237237
    238 Due to internal caching of zipped packages, whenever the content of the packages change on disk, the in-memory zip index will no longer match and you'll get irrecoverable !ZipImportError errors. Better anticipate and bring your server down for maintenance before upgrading.
     238Due to internal caching of zipped packages, whenever the content of the packages change on disk, the in-memory zip index will no longer match and you'll get irrecoverable !ZipImportError errors. Better to anticipate and bring your server down for maintenance before upgrading.
    239239See [trac:#7014] for details.
    240240
     
    255255=== Upgrading Python
    256256
    257 Upgrading Python to a newer version will require reinstallation of Python packages: Trac itself of course, but also [http://pypi.python.org/pypi/setuptools setuptools]. If you are using Subversion, you'll need to upgrade the [trac:TracSubversion Python bindings for SVN].
     257Upgrading Python to a newer version will require reinstallation of Python packages: Trac itself of course, but also [TracInstall#Dependencies dependencies]. If you are using Subversion, you'll need to upgrade the [trac:TracSubversion Python bindings for SVN].
    258258
    259259=== Changing Database Backend