1
0

install_pagure_loadjson.rst 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. .. note:: We ship a systemd unit file for pagure_loadjson 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-loadjson/pagure_loadjson_server.py`` | ``/usr/libexec/pagure-loadjson/pagure_loadjson.py``|
  18. +--------------------------------------------------+----------------------------------------------------+
  19. | ``pagure-loadjson/pagure_loadjson.service`` | ``/etc/systemd/system/pagure_loadjson.service`` |
  20. +--------------------------------------------------+----------------------------------------------------+
  21. The first file is the pagure-loadjson service itself, triggered by the git
  22. hook (shipped with pagure itself) and loading the JSON files 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_loadjson
  29. systemctl start pagure_loadjson