install_pagure_ev.rst 1.5 KB

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