-
Notifications
You must be signed in to change notification settings - Fork 0
Replace flask development server backend with production one #18
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
We should stop using flask server and replace it with a production one. Since we are using SocketIO, one of the highest recommended packages is 'eventlet'.
Add 'eventlet' to 'install_requires' in setup.py as a required dependency.
Then update some of the code for socketio in graphex/server.py:
socketio = SocketIO(
app,
async_mode="eventlet", # make the backend explicit
path="/api/socket.io",
cors_allowed_origins="*",
logger=False,
engineio_logger=False
)and
self.socketio.run(
app=self.app,
host="0.0.0.0",
port=port,
ssl_context=self.ssl_context,
debug=False
)Then do some testing to determine nothing is broken with executing existing graphs.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request