Edgewall Software

Changes between Version 64 and Version 65 of TracUpgrade


Ignore:
Timestamp:
Jun 25, 2009, 6:02:19 PM (15 years ago)
Author:
Christian Boos
Comment:

that page is not only about environment upgrade, which is only one step out of many.

Legend:

Unmodified
Added
Removed
Modified
  • TracUpgrade

    v64 v65  
    22[[TracGuideToc]]
    33
    4 A [TracEnvironment Trac environment] needs to be upgraded before it can be used with Trac 0.11. This document describes the steps necessary to upgrade an environment.
    5 
    6 Environment upgrades are not necessary for minor version releases unless otherwise noted.
    7 
    84== Instructions ==
    95
    10 Typically, there are four steps involved in upgrading to a newer version of Trac:
     6Typically, there are five steps involved in upgrading to a newer version of Trac:
    117
    12 === Update the Trac Code ===
     8=== 1. Update the Trac Code === #UpdatetheTracCode
    139
    1410Get the new version as described in TracInstall, or your operating system specific procedure.
     
    3430If you had the webadmin plugin installed, you can now uninstall it as it is now part of the Trac code base.
    3531
    36 === Upgrade the Trac Environment ===
     32=== 2. Upgrade the Trac Environment === #UpgradetheTracEnvironment
     33
     34Environment upgrades are not necessary for minor version releases unless otherwise noted.
    3735
    3836After restarting, Trac should show the instances which need a manual upgrade via the automated upgrade scripts to ease the pain. These scripts are run via [TracAdmin trac-admin]:
     
    5048If you are using custom CSS styles or modified templates in the templates directory of the TracEnvironment, you will need to convert them to the Genshi way of doing things. To continue to use your style sheet, follow the instructions at TracInterfaceCustomization#SiteAppearance.
    5149
    52 === Update the Trac Documentation ===
     50=== 3. Update the Trac Documentation === #UpdatetheTracDocumentation
    5351
    5452Every [TracEnvironment Trac environment] includes a copy of the Trac documentation for the installed version. As you probably want to keep the included documentation in sync with the installed version of Trac, [TracAdmin trac-admin] provides a command to upgrade the documentation:
     
    5957Note that this procedure will of course leave your `WikiStart` page intact.
    6058
    61 === Site Templates ===
     59=== 4. Steps specific to a given Trac version  ===
     60==== Upgrading to Trac 0.11 ====
     61===== Site Templates =====
    6262The templating engine has changed in 0.11, please look at TracInterfaceCustomization for more information.
    6363
    64 === Trac Macros, Plugins ===
     64===== Trac Macros, Plugins =====
    6565The Trac macros will need to be adapted, as the old-style wiki-macros are not supported anymore (due to the drop of [trac:ClearSilver ClearSilver] and the HDF); they need to be converted to the new-style macros, see WikiMacros. When they are converted to the new style, they need to be placed into the plugins directory instead and not wiki-macros, which is no longer scanned for macros or plugins.
    6666
    67 === For CGI users ===
    68 
    69 For those who run Trac under the CGI environment, run this command in order to obtain the trac.cgi file:
     67===== For FCGI/WSGI/CGI users =====
     68For those who run Trac under the CGI environment, run this command in order to obtain the trac.*gi file:
    7069{{{
    7170trac-admin /path/to/env deploy /deploy/directory/path
     
    7473This will create a deploy directory with the following two subdirectories: `cgi-bin` and `htdocs`. Then update your Apache configuration file `httpd.conf` with this new `trac.cgi` location and `htdocs` location.
    7574
    76 === Restart the Web Server ===
     75=== 5. Restart the Web Server === #RestarttheWebServer
     76
    7777If you are not running [wiki:TracCgi CGI], reload the new Trac code by restarting your web server.
    7878
    7979== Known Issues ==
     80
    8081=== parent dir ===
    8182If you use a trac parent env configuration and one of the plugins in one child does not work, none of the children work.
     83
    8284=== some core modules won't load ===
    8385This can happen in particular with Python 2.3 on Windows when upgrading without uninstalling first.
     
    8789}}}
    8890Remove the `Lib/site-packages/trac` folder and reinstall.
     91
    8992=== Wiki Upgrade ===
    9093`trac-admin` will not delete or remove pages that were in version 0.10 but now are not in version 0.11, such as WikiMacros.
    9194
     95
    9296== Changing Database Backend ==
    93 == SQLite to PostgreSQL ==
     97=== SQLite to PostgreSQL ===
    9498
    9599The [http://trac-hacks.org/wiki/SqliteToPgScript sqlite2pg] script on [http://trac-hacks.org trac-hacks.org] has been written to assist in migrating a SQLite database to a PostgreSQL database