Skip to content

Replace flask development server backend with production one #18

@t-ambur

Description

@t-ambur

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions