install_pagure_ev.rst 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Installing pagure's EventSource server
  2. ======================================
  3. Eventsource or Server Sent Events are messages sent from a server to a web
  4. browser. It allows one to refresh a page "live", ie, without the need to reload
  5. it entirely.
  6. Configure your system
  7. ---------------------
  8. The eventsource server is easy to set-up.
  9. * Install the required dependencies
  10. ::
  11. python-redis
  12. .. note:: We ship a systemd unit file for pagure_milter but we welcome patches
  13. for scripts for other init systems.
  14. * Install the files of the SSE server as follow:
  15. +----------------------------------------+-----------------------------------------------------+
  16. | Source | Destination |
  17. +========================================+=====================================================+
  18. | ``pagure-ev/pagure_stream_server.py`` | ``/usr/libexec/pagure-ev/pagure_stream_server.py`` |
  19. +----------------------------------------+-----------------------------------------------------+
  20. | ``pagure-ev/pagure_ev.service`` | ``/etc/systemd/system/pagure_ev.service`` |
  21. +----------------------------------------+-----------------------------------------------------+
  22. The first file is the script of the SSE server itself.
  23. The second file is the systemd service file.
  24. * Finally, activate the service and ensure it's started upon boot:
  25. ::
  26. systemctl enable redis
  27. systemctl start redis
  28. systemctl enable pagure_ev
  29. systemctl start pagure_ev