summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-02-18 14:42:15 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-02-18 14:42:15 +0100
commit4889bb7371b0fc8ce427aa761be00c6b1ac3d212 (patch)
tree5235904ad00b4d67639865abb5cc942feb061de5 /doc
parent750b596044fa30b3ceb0f7885d18bbf5e71cb53e (diff)
downloadhyperkitty-4889bb7371b0fc8ce427aa761be00c6b1ac3d212.tar.gz
hyperkitty-4889bb7371b0fc8ce427aa761be00c6b1ac3d212.tar.xz
hyperkitty-4889bb7371b0fc8ce427aa761be00c6b1ac3d212.zip
Add documentation on upgrades
Diffstat (limited to 'doc')
-rw-r--r--doc/install.rst32
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/install.rst b/doc/install.rst
index c370b1f..2592234 100644
--- a/doc/install.rst
+++ b/doc/install.rst
@@ -34,6 +34,11 @@ and other to store the emails. Edit this file to reflect the correct database
credentials. The configuration variables are ``DATABASES`` (at the top of the
file) and ``KITTYSTORE_URL`` (at the bottom).
+Or better yet, instead of changing the ``settings.py`` file itself, copy the
+values you want to change to a file called ``settings_local.py`` and change
+them there. It will override the values in ``settings.py`` and will make future
+upgrades easier.
+
.. note::
Detailed information on how to use different database engines can be found
in the `Django documentation`_.
@@ -93,6 +98,33 @@ to make sure the emails are correctly archived. You should not see "``Broken
archiver: hyperkitty``" messages.
+Upgrading
+=========
+
+To upgrade an existing installation of HyperKitty, you need to update the code
+base and run the commands that will update the database schemas. Before
+updating any of those databases, it is recommanded to shut down the webserver
+which serves HyperKitty (Apache HTTPd for example).
+
+There are two main databases in HyperKitty. The one from KittyStore and the one
+from HyperKitty itself. To update the KittyStore database, just run::
+
+ kittystore-update -s KITTYSTORE_URL
+
+where "``KITTYSTORE_URL``" is the content of the ``KITTYSTORE_URL`` variable in
+``settings.py`` (or ``settings_local.py``). This command may take a long time
+to complete, donc interrupt it.
+
+Then, to update the HyperKitty database, run::
+
+ python hyperkitty_standalone/manage.py syncdb
+ python hyperkitty_standalone/manage.py migrate hyperkitty
+
+After those commands complete, your database will be updated, you can start
+your webserver again, and restart Mailman (to take the KittyStore upgrade into
+account).
+
+
License
=======