Deployment

From sources

Clone the source:

git clone https://github.com/pypingou/fedocal.git

Copy the configuration file:

cp fedocal.cfg.sample fedocal.cfg

Adjust the configuration file (secret key, database URL, admin group...). See doc:`configuration`_ for detailed information about the configuration.

Create the database scheme:

python fedocal/fedocallib/model.py

From system-wide packages

Set-up WSGI

Start by installing mod_wsgi:

yum install mod_wsgi

Then configure apache:

sudo vim /etc/httd/conf.d/wsgi.conf

and put in this file:

WSGIScriptAlias /fedocal /var/www/wsgi/fedocal.wsgi
<Directory /var/www/wsgi/>
    Order deny,allow
    Allow from all
</Directory>

Then create the file /var/www/wsgi/fedocal.wsgi with:

import fedocal
application = fedocal.APP

Then restart apache and you should be able to access the website on http://localhost/fedocal

Then restart apache and you should be able to access the website on http://localhost/fedocal

For testing

See doc:development if you want to run fedocal just to test it.

Docutils System Messages

System Message: ERROR/3 (deployment.rst, line 16); backlink

Unknown target name: "configuration".