master
Martin Polanka 8 years ago
parent 3d8e76a4fe
commit f458d389b0

@ -34,23 +34,23 @@ the following subfolders:
## Installation ## Installation
To install and use the fileserver, it's necessary to have Python3 with `pip` package manager installed. It's needed to install the dependencies. From clonned repository run the following command: To install and use the fileserver, it is necessary to have Python3 with `pip` package manager installed. It is needed to install the dependencies. From clonned repository run the following command:
``` ```
$ pip install -r requirements.txt $ pip install -r requirements.txt
``` ```
That's it. Fileserver doesn't need any special installation. It's possible to build and install _rpm_ package or install it without packaging the same way as monitor, but it's only optional. The installation would provide you with script `recodex-fileserver` in you `PATH`. No systemd unit files are provided, because of the configuration and usage of fileserver component is much different to our other Python parts. That is it. Fileserver does not need any special installation. It is possible to build and install _rpm_ package or install it without packaging the same way as monitor, but it is only optional. The installation would provide you with script `recodex-fileserver` in you `PATH`. No systemd unit files are provided, because of the configuration and usage of fileserver component is much different to our other Python parts.
## Configuration and usage ## Configuration and usage
There are several ways of running the ReCodEx fileserver. We'll cover two There are several ways of running the ReCodEx fileserver. We will cover two
typical use cases. typical use cases.
### Running in development mode ### Running in development mode
For simple development usage, it's possible to run the fileserver in the command For simple development usage, it is possible to run the fileserver in the command
line. Allowed options are described below. line. Allowed options are described below.
``` ```
@ -110,7 +110,7 @@ Another option is to run fileserver as a standalone app via uWSGI service. Setup
5. To integrate this with another web server, see the [uWSGI 5. To integrate this with another web server, see the [uWSGI
documentation](http://uwsgi-docs.readthedocs.io/en/latest/WebServers.html) documentation](http://uwsgi-docs.readthedocs.io/en/latest/WebServers.html)
Note that the ways distributions package uWSGI can vary wildly. In Debian 8 it's Note that the ways distributions package uWSGI can vary wildly. In Debian 8 it is
necessary to convert the configuration file to XML and make sure that the necessary to convert the configuration file to XML and make sure that the
python3 plugin is loaded instead of python. This plugin also uses Python 3.4, python3 plugin is loaded instead of python. This plugin also uses Python 3.4,
even though the rest of the system uses Python 3.5 - make sure to install even though the rest of the system uses Python 3.5 - make sure to install

Loading…
Cancel
Save