Mercurial > kallithea
annotate docs/upgrade.rst @ 1103:918c0b600a06 beta
changelog update, bumped mako version in setup
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 27 Feb 2011 03:31:01 +0100 |
parents | 8af52e1224ff |
children | 9472a0150bf0 |
rev | line source |
---|---|
642 | 1 .. _upgrade: |
2 | |
3 Upgrade | |
4 ======= | |
5 | |
1092
8af52e1224ff
merge docs in beta with those corrected by Jason Harris
Marcin Kuzminski <marcin@python-works.com>
parents:
1062
diff
changeset
|
6 Upgrading from Cheese Shop |
8af52e1224ff
merge docs in beta with those corrected by Jason Harris
Marcin Kuzminski <marcin@python-works.com>
parents:
1062
diff
changeset
|
7 -------------------------- |
642 | 8 |
1092
8af52e1224ff
merge docs in beta with those corrected by Jason Harris
Marcin Kuzminski <marcin@python-works.com>
parents:
1062
diff
changeset
|
9 .. note:: |
8af52e1224ff
merge docs in beta with those corrected by Jason Harris
Marcin Kuzminski <marcin@python-works.com>
parents:
1062
diff
changeset
|
10 Firstly, it is recommended that you **always** perform a database backup before doing an upgrade. |
8af52e1224ff
merge docs in beta with those corrected by Jason Harris
Marcin Kuzminski <marcin@python-works.com>
parents:
1062
diff
changeset
|
11 |
8af52e1224ff
merge docs in beta with those corrected by Jason Harris
Marcin Kuzminski <marcin@python-works.com>
parents:
1062
diff
changeset
|
12 The easiest way to upgrade ``rhodecode`` is to run:: |
642 | 13 |
14 easy_install -U rhodecode | |
15 | |
16 Or:: | |
17 | |
18 pip install --upgrade rhodecode | |
19 | |
20 | |
1092
8af52e1224ff
merge docs in beta with those corrected by Jason Harris
Marcin Kuzminski <marcin@python-works.com>
parents:
1062
diff
changeset
|
21 Then make sure you run the following command from the installation directory:: |
642 | 22 |
23 paster make-config RhodeCode production.ini | |
24 | |
1092
8af52e1224ff
merge docs in beta with those corrected by Jason Harris
Marcin Kuzminski <marcin@python-works.com>
parents:
1062
diff
changeset
|
25 This will display any changes made by the new version of RhodeCode to your |
8af52e1224ff
merge docs in beta with those corrected by Jason Harris
Marcin Kuzminski <marcin@python-works.com>
parents:
1062
diff
changeset
|
26 current configuration. It will try to perform an automerge. It's always better |
8af52e1224ff
merge docs in beta with those corrected by Jason Harris
Marcin Kuzminski <marcin@python-works.com>
parents:
1062
diff
changeset
|
27 to make a backup of your configuration file before hand and recheck the content after the automerge. |
642 | 28 |
1062
053983a464e4
docs and readme update
Marcin Kuzminski <marcin@python-works.com>
parents:
845
diff
changeset
|
29 .. note:: |
053983a464e4
docs and readme update
Marcin Kuzminski <marcin@python-works.com>
parents:
845
diff
changeset
|
30 The next steps only apply to upgrading from non bugfix releases eg. from |
1092
8af52e1224ff
merge docs in beta with those corrected by Jason Harris
Marcin Kuzminski <marcin@python-works.com>
parents:
1062
diff
changeset
|
31 any minor or major releases. Bugfix releases (eg. 1.1.2->1.1.3) will |
8af52e1224ff
merge docs in beta with those corrected by Jason Harris
Marcin Kuzminski <marcin@python-works.com>
parents:
1062
diff
changeset
|
32 not have any database schema changes or whoosh library updates. |
1062
053983a464e4
docs and readme update
Marcin Kuzminski <marcin@python-works.com>
parents:
845
diff
changeset
|
33 |
1092
8af52e1224ff
merge docs in beta with those corrected by Jason Harris
Marcin Kuzminski <marcin@python-works.com>
parents:
1062
diff
changeset
|
34 It is also recommended that you rebuild the whoosh index after upgrading since the new whoosh |
8af52e1224ff
merge docs in beta with those corrected by Jason Harris
Marcin Kuzminski <marcin@python-works.com>
parents:
1062
diff
changeset
|
35 version could introduce some incompatible index changes. |
845 | 36 |
37 | |
1092
8af52e1224ff
merge docs in beta with those corrected by Jason Harris
Marcin Kuzminski <marcin@python-works.com>
parents:
1062
diff
changeset
|
38 The final step is to upgrade the database. To do this simply run:: |
845 | 39 |
1062
053983a464e4
docs and readme update
Marcin Kuzminski <marcin@python-works.com>
parents:
845
diff
changeset
|
40 paster upgrade-db production.ini |
845 | 41 |
1092
8af52e1224ff
merge docs in beta with those corrected by Jason Harris
Marcin Kuzminski <marcin@python-works.com>
parents:
1062
diff
changeset
|
42 This will upgrade the schema and update some of the defaults in the database, |
8af52e1224ff
merge docs in beta with those corrected by Jason Harris
Marcin Kuzminski <marcin@python-works.com>
parents:
1062
diff
changeset
|
43 and will always recheck the settings of the application, if there are no new options |
845 | 44 that need to be set. |
45 | |
642 | 46 |
47 .. _virtualenv: http://pypi.python.org/pypi/virtualenv | |
48 .. _python: http://www.python.org/ | |
49 .. _mercurial: http://mercurial.selenic.com/ | |
50 .. _celery: http://celeryproject.org/ | |
51 .. _rabbitmq: http://www.rabbitmq.com/ |