SURFscz / SRAM-deploy

Deploy scripts for the SCZ
Apache License 2.0
5 stars 5 forks source link

Use Nginx and eventlet to run SBS for websockets to work #313

Closed oharsta closed 2 years ago

oharsta commented 2 years ago

A prerequisite for "Live" updates when something changes https://github.com/SURFscz/SBS/issues/206 is to change the deployment of SBS to use Nginx as reverse proxy with eventlet as wsgi server. See https://flask-socketio.readthedocs.io/en/latest/deployment.html#embedded-server.

The https://github.com/SURFscz/SBS/issues/206 feature is implemented in the feature brach feature/socketio

mrvanes commented 2 years ago

pip install -r requirements/test.txt

Collecting flask_jsontools Cloning https://github.com/oharsta/py-flask-jsontools (to revision master) to /tmp/pip-install-dc5zgnqn/flask-jsontools_40bc851564e544a98411ef81b05162d2

oharsta commented 2 years ago

https://github.com/kolypto/py-flask-jsontools/pull/9

mrvanes commented 2 years ago

https://github.com/SURFscz/SRAM-deploy/tree/feature-sbs-socketio

baszoetekouw commented 2 years ago

Done, tested and works perfectly. (but see https://github.com/SURFscz/SBS/issues/391)