Show More
@@ -149,6 +149,50 b' You may also build the documentation for' | |||||
149 | have sphinx_ installed you can install it via the command: |
|
149 | have sphinx_ installed you can install it via the command: | |
150 | ``easy_install sphinx``) |
|
150 | ``easy_install sphinx``) | |
151 |
|
151 | |||
|
152 | ||||
|
153 | Converting from RhodeCode | |||
|
154 | ------------------------- | |||
|
155 | ||||
|
156 | Currently, you have two options for working with an existing RhodeCode database: | |||
|
157 | - keep the database unconverted (intended for testing and evaluation) | |||
|
158 | - convert the database in a one-time step | |||
|
159 | ||||
|
160 | Maintaining Interoperability | |||
|
161 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |||
|
162 | ||||
|
163 | Interoperability with RhodeCode 2.2.5 installations is provided so you don't | |||
|
164 | have to immediately commit to switching to Kallithea. This option will most | |||
|
165 | likely go away once the two projects have diverged significantly. | |||
|
166 | ||||
|
167 | To run Kallithea on a Rhodecode database, run:: | |||
|
168 | ||||
|
169 | echo "BRAND = 'rhodecode'" > kallithea/brand.py | |||
|
170 | ||||
|
171 | This location will depend on where you installed Kallithea. If you installed via:: | |||
|
172 | ||||
|
173 | python setup.py install | |||
|
174 | ||||
|
175 | then you will find this location at | |||
|
176 | ``$VIRTUAL_ENV/lib/python2.7/site-packages/Kallithea-2.2.5-py2.7.egg/kallithea`` | |||
|
177 | ||||
|
178 | One-time Conversion | |||
|
179 | ~~~~~~~~~~~~~~~~~~~ | |||
|
180 | ||||
|
181 | Alternatively, if you would like to convert the database for good, you can use | |||
|
182 | a helper script provided by Kallithea. This script will operate directly on the | |||
|
183 | database, using the database string you can find in your ``production.ini`` (or | |||
|
184 | ``development.ini``) file. For example, if using SQLite:: | |||
|
185 | ||||
|
186 | cd /path/to/kallithea | |||
|
187 | cp /path/to/rhodecode/rhodecode.db kallithea.db | |||
|
188 | pip install sqlalchemy-migrate | |||
|
189 | python kallithea/bin/rebranddb.py sqlite:///kallithea.db | |||
|
190 | ||||
|
191 | .. WARNING:: | |||
|
192 | ||||
|
193 | If you used the other method for interoperability, overwrite brand.py with | |||
|
194 | an empty file (or watch out for stray brand.pyc after removing brand.py). | |||
|
195 | ||||
152 | .. _virtualenv: http://pypi.python.org/pypi/virtualenv |
|
196 | .. _virtualenv: http://pypi.python.org/pypi/virtualenv | |
153 | .. _python: http://www.python.org/ |
|
197 | .. _python: http://www.python.org/ | |
154 | .. _sphinx: http://sphinx.pocoo.org/ |
|
198 | .. _sphinx: http://sphinx.pocoo.org/ |
General Comments 0
You need to be logged in to leave comments.
Login now