install_pagure_loadjson.rst 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Installing pagure-loadjson
  2. ==========================
  3. pagure-loadjson is the service that updates the database based on the content
  4. of the JSON blob pushed into the ticket git repository (and in the future
  5. for pull-requests as well).
  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_loadjson 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-loadjson/pagure_loadjson_server.py`` | ``/usr/libexec/pagure-loadjson/pagure_loadjson.py``|
  19. +--------------------------------------------------+----------------------------------------------------+
  20. | ``pagure-loadjson/pagure_loadjson.service`` | ``/etc/systemd/system/pagure_loadjson.service`` |
  21. +--------------------------------------------------+----------------------------------------------------+
  22. The first file is the pagure-loadjson service itself, triggered by the git
  23. hook (shipped with pagure itself) and loading the JSON files 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_loadjson
  30. systemctl start pagure_loadjson