~ubuntu-branches/ubuntu/precise/trac/precise

« back to all changes in this revision

Viewing changes to trac/wiki/default-pages/TracUpgrade

  • Committer: Bazaar Package Importer
  • Author(s): W. Martin Borgert
  • Date: 2009-09-15 21:43:38 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20090915214338-q3ecy6qxwxfzf9y8
Tags: 0.11.5-2
* Set exec bit for *_frontends (Closes: #510441), thanks to Torsten
  Landschoff for the patch.
* Move python-psycopg2 and python-mysql from Suggests to Depends as
  alternative to python-psqlite2 (Closes: #513117).
* Use debhelper 7 (Closes: #497862).
* Don't compress *-hook files and don't install MS-Windows *.cmd
  files (Closes: #526142), thanks to Jan Dittberner for the patch.
* Add README.source to point to dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
Get the new version as described in TracInstall, or your operating system specific procedure.
15
15
 
16
 
If you do a manual (not operating system specific) upgrade, you may also later on want to remove the existing Trac code by deleting the `trac` directory from the Python `lib/site-packages` directory.
 
16
If you do a manual (not operating system specific) upgrade, you should also stop any running Trac server before the installation. Doing "hot" upgrades is not advised, especially not on Windows ([trac:ticket:7625 #7265]).
17
17
 
 
18
You may also want to remove the pre-existing Trac code by deleting the `trac` directory from the Python `lib/site-packages` directory, or remove Trac .eggs from former versions.
18
19
The location of the site-packages directory depends on the operating system, and the location in which Python was installed. However, the following locations are common:
19
20
 * If you’re using Linux: /usr/lib/python2.X/site-packages
20
21
 * If you’re using Windows: C:\Python2.X\lib\site-packages
21
 
 * If you’re using MacOSX: /Library/Python2.X/site-packages
 
22
 * If you’re using MacOSX: /Library/Python/2.X/site-packages
22
23
 
23
24
You may also want to remove the Trac `cgi-bin`, `htdocs`, `templates` and `wiki-default` directories that are commonly found in a directory called `share/trac` (the exact location depends on your platform).
24
25
 
 
26
This cleanup is not mandatory, but it makes it easier to troubleshoot issues later on, as you won't waste your time looking at code or templates from a previous release that are not being used anymore... As usual, make a backup before actually deleting things.
 
27
 
25
28
If you had the webadmin plugin installed, you can now uninstall it as it is now part of the Trac code base.
26
29
 
27
30
=== Upgrade the Trac Environment ===
49
52
 
50
53
Note that this procedure will of course leave your `WikiStart` page intact.
51
54
 
 
55
=== Site Templates ===
 
56
The templating engine has changed in 0.11, please look at TracInterfaceCustomization for more information.
 
57
 
52
58
=== Trac Macros, Plugins ===
53
 
The Trac macros will need to be adapted, as the old-style wiki-macros are not supported anymore (due to the drop of 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.
 
59
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.
 
60
 
 
61
=== For CGI users ===
 
62
 
 
63
For those who run Trac under the CGI environment, run this command in order to obtain the trac.cgi file:
 
64
{{{
 
65
trac-admin /path/to/env deploy /deploy/directory/path
 
66
}}}
 
67
 
 
68
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.
54
69
 
55
70
=== Restart the Web Server ===
56
71
If you are not running [wiki:TracCgi CGI], reload the new Trac code by restarting your web server.
75
90
 
76
91
== Older Versions ==
77
92
 
78
 
For upgrades from former versions refer to wiki:0.10/TracUpgrade.
 
93
For upgrades from versions older than Trac 0.10, refer first to trac:wiki:0.10/TracUpgrade.
 
94
 
 
95
Note that downgrading from Trac 0.11 to Trac 0.10.4 or 0.10.5 is easy, but has to be done manually, e.g.
 
96
{{{
 
97
$ sqlite3 db/trac.db "update system set value=20 where name='database_version'"
 
98
}}}
 
99
(upgrade can be redone the normal way later on)
79
100
 
80
101
-----
81
102
See also: TracGuide, TracInstall
 
 
b'\\ No newline at end of file'