install_pagure_loadjson.rst 1.7 KB

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