From 735175ea5d07f19b39f1b0adceb7fbecadbf8f14 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 09 2016 08:53:03 +0000 Subject: [PATCH 1/2] Be consistent in the doc with what is present in the example configuration file --- diff --git a/doc/install.rst b/doc/install.rst index 084387e..fd6426a 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -151,7 +151,7 @@ make ``/srv/git`` the home of your gitolite user. You would then create the folders with: :: - mkdir /srv/git/repositories/{docs,forks,tickets,requests,checkouts} + mkdir /srv/git/repositories/{docs,forks,tickets,requests,remotes} * Configure apache From 4e541dac7da50bcb750a3bf95f8136fefa984562 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 09 2016 08:53:03 +0000 Subject: [PATCH 2/2] Add some documentation on how to create the database for pagure --- diff --git a/doc/install.rst b/doc/install.rst index fd6426a..996de56 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -205,3 +205,27 @@ that you will have to copy to the right location. Confer the ``Configuration`` section of this documentation for a full explanation of all the options of pagure. + +* Create the database + +You first need to create the database itself. For this, since pagure can +work with: `PostgreSQL `_, +`MySQL `_ or `MariaDB `_, we +would like to invite you to consult the documentation of your database system +for this operation. + +Once you have specified in the configuration file the to url used to connect +to the database, and create the database itself, you can now create the +tables, the database scheme. + +To create the database tables, you need to run the script +``/usr/share/pagure/pagure_createdb.py`` and specify it the configuration +file to use via an environment variable. + +For example: +:: + + PAGURE_CONFIG=/etc/pagure/pagure.cfg python /usr/share/pagure/pagure_createdb.py + +This will tell ``/usr/share/pagure/pagure_createdb.py`` to use the database +information specified in the file ``/etc/pagure/pagure.cfg``.