Changes between Version 64 and Version 65 of TracUpgrade
- Timestamp:
- Jun 25, 2009, 6:02:19 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracUpgrade
v64 v65 2 2 [[TracGuideToc]] 3 3 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 8 4 == Instructions == 9 5 10 Typically, there are f oursteps involved in upgrading to a newer version of Trac:6 Typically, there are five steps involved in upgrading to a newer version of Trac: 11 7 12 === Update the Trac Code ===8 === 1. Update the Trac Code === #UpdatetheTracCode 13 9 14 10 Get the new version as described in TracInstall, or your operating system specific procedure. … … 34 30 If you had the webadmin plugin installed, you can now uninstall it as it is now part of the Trac code base. 35 31 36 === Upgrade the Trac Environment === 32 === 2. Upgrade the Trac Environment === #UpgradetheTracEnvironment 33 34 Environment upgrades are not necessary for minor version releases unless otherwise noted. 37 35 38 36 After 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]: … … 50 48 If 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. 51 49 52 === Update the Trac Documentation ===50 === 3. Update the Trac Documentation === #UpdatetheTracDocumentation 53 51 54 52 Every [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: … … 59 57 Note that this procedure will of course leave your `WikiStart` page intact. 60 58 61 === Site Templates === 59 === 4. Steps specific to a given Trac version === 60 ==== Upgrading to Trac 0.11 ==== 61 ===== Site Templates ===== 62 62 The templating engine has changed in 0.11, please look at TracInterfaceCustomization for more information. 63 63 64 === Trac Macros, Plugins===64 ===== Trac Macros, Plugins ===== 65 65 The 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. 66 66 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 ===== 68 For those who run Trac under the CGI environment, run this command in order to obtain the trac.*gi file: 70 69 {{{ 71 70 trac-admin /path/to/env deploy /deploy/directory/path … … 74 73 This 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. 75 74 76 === Restart the Web Server === 75 === 5. Restart the Web Server === #RestarttheWebServer 76 77 77 If you are not running [wiki:TracCgi CGI], reload the new Trac code by restarting your web server. 78 78 79 79 == Known Issues == 80 80 81 === parent dir === 81 82 If you use a trac parent env configuration and one of the plugins in one child does not work, none of the children work. 83 82 84 === some core modules won't load === 83 85 This can happen in particular with Python 2.3 on Windows when upgrading without uninstalling first. … … 87 89 }}} 88 90 Remove the `Lib/site-packages/trac` folder and reinstall. 91 89 92 === Wiki Upgrade === 90 93 `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. 91 94 95 92 96 == Changing Database Backend == 93 == SQLite to PostgreSQL==97 === SQLite to PostgreSQL === 94 98 95 99 The [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