Installation

For proper installation you need to clone the project from git.

Note

It service installation assumes running in a docker container, all commands below must be executed from the /srv directory.

Database creation

To prepare the database, use the storages tool.

First launch and testing

If all the previous actions are executed successfully, the server is ready to work. To start the server please launch run.py script. While start you can add arguments: the server message port, the path to the config, suffix for log files (for different workers). By default 5210 port is used. Also it possible to run the service with the config from luna-configurator (see configurator).

Example:

./run.py --port 5210 --config ./configs/myconfig.conf --log_suffix 1

After the server is started, testing is recommended. To perform testing execute command

python -m unittest tests.unittests_main

All tests should perform successfully.