Simple Flask WebSocket application which sends journalctl -u unit.name -f
data to browser in realtime.
to run only on localhost:
~$ pip install -r requirements.txt
~$ gunicorn --bind 127.0.0.1:5000 --workers 3 app:app #
Or run on external ip
Edit 'ws_url': 'ws://127.0.0.1:5000/log'
line in app.py
, set your ip address.
~$ gunicorn --bind 0.0.0.0:5000 --workers 3 app:app