install_evs.rst 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 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. python-trollius
  13. python-trollius-redis
  14. .. note:: We ship a systemd unit file for pagure_milter but we welcome patches
  15. for scripts for other init systems.
  16. * Install the files of the SSE server as follow:
  17. +----------------------------------------+-----------------------------------------------------+
  18. | Source | Destination |
  19. +========================================+=====================================================+
  20. | ``ev-server/pagure-stream-server.py`` | ``/usr/libexec/pagure-ev/pagure-stream-server.py`` |
  21. +----------------------------------------+-----------------------------------------------------+
  22. | ``ev-server/pagure_ev.service`` | ``/etc/systemd/system/pagure_ev.service`` |
  23. +----------------------------------------+-----------------------------------------------------+
  24. The first file is the script of the SSE server itself.
  25. The second file is the systemd service file.
  26. * Finally, activate the service and ensure it's started upon boot:
  27. ::
  28. systemctl enable redis
  29. systemctl start redis
  30. systemctl enable pagure_ev
  31. systemctl start pagure_ev