Skip to content

Commit

Permalink
docs(tools): add serve info
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Feb 9, 2024
1 parent 51cea2c commit ee11657
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
4 changes: 0 additions & 4 deletions docs/api/source/tools.docker.rst

This file was deleted.

4 changes: 0 additions & 4 deletions docs/api/source/tools.publish.rst

This file was deleted.

23 changes: 23 additions & 0 deletions docs/api/source/tools.serve.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Python serve utility
====================================

This executable allow you to run a trame application as a single process for multiple users.
As opposed to the regular launcher within our docker setup, this will run a single process
and execute each session within its own trame server as an asynchronous task in Python.

This tools is not meant to be used on a production server but could be enough for multi-users demos.

Also this assume that your trame application is using a class construct which expect a server as argument.

The default example can be executed as follow:

.. code-block:: bash
python -m trame.tools.serve
The possible arguments are:
- `--exec`: Trame app to serve (default: `trame.app.demo:Cone`) where `Cone`` is the class to instantiate from the `trame.app.demo` module.
- `--host`: IP or hostname to serve on (default: `localhost`)
- `--port`: Port to serve on (default: `8080`)
- `--ws-heart-beat`: WebSocket heart beat in seconds (default: `30`)
- `--ws-max-size`: WebSocket maximum message size in bytes (default: `10000000`)
4 changes: 0 additions & 4 deletions docs/api/source/tools.singularity.rst

This file was deleted.

0 comments on commit ee11657

Please sign in to comment.