Show More
@@ -11,8 +11,8 b' clients. Minimal version of hg client kn' | |||
|
11 | 11 | **1.6**. If you're using older client, please upgrade. |
|
12 | 12 | |
|
13 | 13 | |
|
14 |
Installing RhodeCode from Cheese |
|
|
15 | ------------------------------------- | |
|
14 | Installing RhodeCode from PyPI (aka "Cheeseshop") | |
|
15 | ------------------------------------------------- | |
|
16 | 16 | |
|
17 | 17 | Rhodecode requires python version 2.5 or higher. |
|
18 | 18 | |
@@ -126,4 +126,4 b' You can now proceed to :ref:`setup`' | |||
|
126 | 126 | .. _python: http://www.python.org/ |
|
127 | 127 | .. _mercurial: http://mercurial.selenic.com/ |
|
128 | 128 | .. _celery: http://celeryproject.org/ |
|
129 | .. _rabbitmq: http://www.rabbitmq.com/ No newline at end of file | |
|
129 | .. _rabbitmq: http://www.rabbitmq.com/ |
@@ -4,14 +4,43 b'' | |||
|
4 | 4 | Upgrade |
|
5 | 5 | ======= |
|
6 | 6 | |
|
7 |
Upgrading from Cheese |
|
|
8 | -------------------------- | |
|
7 | Upgrading from PyPI (aka "Cheeseshop") | |
|
8 | --------------------------------------- | |
|
9 | 9 | |
|
10 | 10 | .. note:: |
|
11 |
Firstly, it is recommended that you **always** perform a database |
|
|
12 | before doing an upgrade. | |
|
11 | Firstly, it is recommended that you **always** perform a database and | |
|
12 | configuration backup before doing an upgrade. | |
|
13 | ||
|
14 | (These directions will use '{version}' to note that this is the version of | |
|
15 | Rhodecode that these files were used with. If backing up your RhodeCode | |
|
16 | instance from version 1.3.6 to 1.4.0, the ``production.ini`` file would be | |
|
17 | backed up to ``production.ini.1-3-6``.) | |
|
18 | ||
|
19 | ||
|
20 | If using a sqlite database, stop the Rhodecode process/daemon/service, and | |
|
21 | then make a copy of the database file:: | |
|
22 | ||
|
23 | service rhodecode stop | |
|
24 | cp rhodecode.db rhodecode.db.{version} | |
|
25 | ||
|
13 | 26 |
|
|
14 | The easiest way to upgrade ``rhodecode`` is to run:: | |
|
27 | Back up your configuration file:: | |
|
28 | ||
|
29 | cp production.ini production.ini.{version} | |
|
30 | ||
|
31 | ||
|
32 | Ensure that you are using the Python Virtual Environment that you'd originally | |
|
33 | installed Rhodecode in:: | |
|
34 | ||
|
35 | pip freeze | |
|
36 | ||
|
37 | will list all packages installed in the current environment. If Rhodecode | |
|
38 | isn't listed, change virtual environments to your venv location:: | |
|
39 | ||
|
40 | source /opt/rhodecode-venv/bin/activate | |
|
41 | ||
|
42 | ||
|
43 | Once you have verified the environment you can upgrade ``Rhodecode`` with:: | |
|
15 | 44 | |
|
16 | 45 | easy_install -U rhodecode |
|
17 | 46 | |
@@ -20,14 +49,13 b' Or::' | |||
|
20 | 49 | pip install --upgrade rhodecode |
|
21 | 50 | |
|
22 | 51 | |
|
23 |
Then |
|
|
52 | Then run the following command from the installation directory:: | |
|
24 | 53 | |
|
25 | 54 | paster make-config RhodeCode production.ini |
|
26 | 55 | |
|
27 | 56 | This will display any changes made by the new version of RhodeCode to your |
|
28 |
current configuration. It will try to perform an automerge. It's |
|
|
29 | to make a backup of your configuration file before hand and re check the | |
|
30 | content after the automerge. | |
|
57 | current configuration. It will try to perform an automerge. It's recommended | |
|
58 | that you re-check the content after the automerge. | |
|
31 | 59 | |
|
32 | 60 | .. note:: |
|
33 | 61 | Please always make sure your .ini files are up to date. Often errors are |
@@ -47,6 +75,19 b' This will upgrade the schema and update ' | |||
|
47 | 75 | and will always recheck the settings of the application, if there are no new |
|
48 | 76 | options that need to be set. |
|
49 | 77 | |
|
78 | You may find it helpful to clear out your log file so that new errors are | |
|
79 | readily apparent:: | |
|
80 | ||
|
81 | echo > rhodecode.log | |
|
82 | ||
|
83 | Once that is complete, you may now start your upgraded Rhodecode Instance:: | |
|
84 | ||
|
85 | service rhodecode start | |
|
86 | ||
|
87 | Or:: | |
|
88 | ||
|
89 | paster serve /var/www/rhodecode/production.ini | |
|
90 | ||
|
50 | 91 | .. note:: |
|
51 | 92 | If you're using Celery, make sure you restart all instances of it after |
|
52 | 93 | upgrade. |
@@ -55,4 +96,4 b' options that need to be set.' | |||
|
55 | 96 | .. _python: http://www.python.org/ |
|
56 | 97 | .. _mercurial: http://mercurial.selenic.com/ |
|
57 | 98 | .. _celery: http://celeryproject.org/ |
|
58 | .. _rabbitmq: http://www.rabbitmq.com/ No newline at end of file | |
|
99 | .. _rabbitmq: http://www.rabbitmq.com/ |
General Comments 0
You need to be logged in to leave comments.
Login now