install_pagure_logcom.rst 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Installing pagure-logcom
  2. ========================
  3. pagure-logcom is the service that updates the log table in the database
  4. for every commit made to the main branch of a repository allowing to build
  5. the calendar heatmap presented on every user's page.
  6. Configure your system
  7. ---------------------
  8. * Install the required dependencies
  9. ::
  10. python-redis
  11. python-trololio
  12. .. note:: We ship a systemd unit file for pagure_logcom but we welcome patches
  13. for scripts for other init systems.
  14. * Install the files of pagure-loadjon as follow:
  15. +-----------------------------------------------+-------------------------------------------------------+
  16. | Source | Destination |
  17. +===============================================+=======================================================+
  18. | ``pagure-logcom/pagure_logcom_server.py`` | ``/usr/libexec/pagure-logcom/pagure_logcom_server.py``|
  19. +--------------------------------------------------+----------------------------------------------------+
  20. | ``pagure-logcom/pagure_logcom.service`` | ``/etc/systemd/system/pagure_logcom.service`` |
  21. +-----------------------------------------------+-------------------------------------------------------+
  22. The first file is the pagure-logcom service itself, triggered by the git
  23. hook (shipped with pagure itself) and logging the commits into the database.
  24. The second file is the systemd service file.
  25. * Activate the service and ensure it's started upon boot:
  26. ::
  27. systemctl enable redis
  28. systemctl start redis
  29. systemctl enable pagure_logcom
  30. systemctl start pagure_logcom