Deployment

From sources

Clone the source:

git clone http://git.fedorahosted.org/git/mirrormanager2.git

Install the dependencies listed in the requirements.txt file.

Note

The requirements.txt file require flask>=0.10 but this is only required for the unit-tests and in fact flask<0.10 is required for python-fedora to work at the moment. The next release of python-fedora should fix this problem.

Copy the configuration files:

cp utility/mirrormanager2.cfg.sample mirrormanager2.cfg

Adjust the configuration files (secret key, database URL, admin group...). See configuration for detailed information about the configuration.

Create the database scheme:

MM2_CONFIG=/path/to/mirrormanager2.cfg python createdb.py

Set up the WSGI as described below.

From system-wide packages

Start by install mirrormanager2:

yum install mirrormanager2

Adjust the configuration files: /etc/mirrormanager2/mirrormanager2.cfg. See configuration for detailed information about the configuration.

Find the file used to create the database:

rpm -ql mirrormanager22 |grep createdb.py

Create the database scheme:

MM2_CONFIG=/etc/mirrormanager2/mirrormanager2.cfg python path/to/createdb.py

Set up the WSGI as described below.

Set-up WSGI

Start by installing mod_wsgi:

yum install mod_wsgi

Then configure apache:

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

uncomment the content of the file and adjust as desired.

Then edit the file /usr/share/mirrormanager2/mirrormanager2.wsgi and adjust as needed.

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

Note

Flask provides also some documentation on how to deploy Flask application with WSGI and apache.

For testing

See Development if you want to run mirrormanager2 just to test it.

MirrorManager

Previous page

← MirrorManagement2

Next page

→ Development

This Page