Create a directory (mkdir maubot) and enter it (cd maubot).
Do not clone the repository. If you want to use a specific version from
git rather than PyPI, use the development setup instructions.
Set up a virtual environment.
Create with virtualenv -p /usr/bin/python3 . (note the dot at the end)
You should not use a subdirectory for the virtualenv in this production
setup. The pip install step places some required files at the root of
Activate with source ./bin/activate
Install with pip install --upgrade maubot
Copy example-config.yaml to config.yaml and update to your liking. N.B. If you created a virtualenv in a different directory than .
(e.g. in .venv), you must manually copy example-config.yaml from the
virtualenv directory to the directory you're running maubot in (or provide
the path to the example config when starting maubot). Maubot will not
function without access to the example config, as it is used for keeping
your config file up to date.
Create the log directory and all directories used in plugin_directories
(usually mkdir plugins trash logs).
Start with python3 -m maubot.
Create the database with alembic upgrade head. If you have a custom config
path, use alembic -x config=/path/to/config.yaml upgrade head.