-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
23 additions
and
12 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`) |
This file was deleted.
Oops, something went wrong.