install_pagure_logcom.rst 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. .. note:: We ship a systemd unit file for pagure_logcom but we welcome patches
  12. for scripts for other init systems.
  13. * Install the files of pagure-loadjon as follow:
  14. +-----------------------------------------------+-------------------------------------------------------+
  15. | Source | Destination |
  16. +===============================================+=======================================================+
  17. | ``pagure-logcom/pagure_logcom_server.py`` | ``/usr/libexec/pagure-logcom/pagure_logcom_server.py``|
  18. +--------------------------------------------------+----------------------------------------------------+
  19. | ``pagure-logcom/pagure_logcom.service`` | ``/etc/systemd/system/pagure_logcom.service`` |
  20. +-----------------------------------------------+-------------------------------------------------------+
  21. The first file is the pagure-logcom service itself, triggered by the git
  22. hook (shipped with pagure itself) and logging the commits into the database.
  23. The second file is the systemd service file.
  24. * Activate the service and ensure it's started upon boot:
  25. ::
  26. systemctl enable redis
  27. systemctl start redis
  28. systemctl enable pagure_logcom
  29. systemctl start pagure_logcom