##// END OF EJS Templates
fleshing out the Upgrade doc, and modified the references to Cheeseshop in the Install doc
H Waldo G -
r2806:008d9c6f beta
parent child Browse files
Show More
@@ -11,8 +11,8 b' clients. Minimal version of hg client kn'
11 **1.6**. If you're using older client, please upgrade.
11 **1.6**. If you're using older client, please upgrade.
12
12
13
13
14 Installing RhodeCode from Cheese Shop
14 Installing RhodeCode from PyPI (aka "Cheeseshop")
15 -------------------------------------
15 -------------------------------------------------
16
16
17 Rhodecode requires python version 2.5 or higher.
17 Rhodecode requires python version 2.5 or higher.
18
18
@@ -126,4 +126,4 b' You can now proceed to :ref:`setup`'
126 .. _python: http://www.python.org/
126 .. _python: http://www.python.org/
127 .. _mercurial: http://mercurial.selenic.com/
127 .. _mercurial: http://mercurial.selenic.com/
128 .. _celery: http://celeryproject.org/
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 Upgrade
4 Upgrade
5 =======
5 =======
6
6
7 Upgrading from Cheese Shop
7 Upgrading from PyPI (aka "Cheeseshop")
8 --------------------------
8 ---------------------------------------
9
9
10 .. note::
10 .. note::
11 Firstly, it is recommended that you **always** perform a database backup
11 Firstly, it is recommended that you **always** perform a database and
12 before doing an upgrade.
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 easy_install -U rhodecode
45 easy_install -U rhodecode
17
46
@@ -20,14 +49,13 b' Or::'
20 pip install --upgrade rhodecode
49 pip install --upgrade rhodecode
21
50
22
51
23 Then make sure you run the following command from the installation directory::
52 Then run the following command from the installation directory::
24
53
25 paster make-config RhodeCode production.ini
54 paster make-config RhodeCode production.ini
26
55
27 This will display any changes made by the new version of RhodeCode to your
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 always better
57 current configuration. It will try to perform an automerge. It's recommended
29 to make a backup of your configuration file before hand and re check the
58 that you re-check the content after the automerge.
30 content after the automerge.
31
59
32 .. note::
60 .. note::
33 Please always make sure your .ini files are up to date. Often errors are
61 Please always make sure your .ini files are up to date. Often errors are
@@ -41,12 +69,25 b' Read the changelog to see if there were '
41
69
42 The final step is to upgrade the database. To do this simply run::
70 The final step is to upgrade the database. To do this simply run::
43
71
44 paster upgrade-db production.ini
72 paster upgrade-db production.ini
45
73
46 This will upgrade the schema and update some of the defaults in the database,
74 This will upgrade the schema and update some of the defaults in the database,
47 and will always recheck the settings of the application, if there are no new
75 and will always recheck the settings of the application, if there are no new
48 options that need to be set.
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 .. note::
91 .. note::
51 If you're using Celery, make sure you restart all instances of it after
92 If you're using Celery, make sure you restart all instances of it after
52 upgrade.
93 upgrade.
@@ -55,4 +96,4 b' options that need to be set.'
55 .. _python: http://www.python.org/
96 .. _python: http://www.python.org/
56 .. _mercurial: http://mercurial.selenic.com/
97 .. _mercurial: http://mercurial.selenic.com/
57 .. _celery: http://celeryproject.org/
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