mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-22 16:12:29 +00:00
Update usage.rst
This commit is contained in:
parent
23796b81af
commit
fe4ee87813
@ -14,12 +14,29 @@ Or, alternatively:
|
|||||||
python -m senpy
|
python -m senpy
|
||||||
|
|
||||||
|
|
||||||
This will create a server with any modules found in the current path. In case you want to load modules that are in a different folders under the same path, use the next option.
|
This will create a server with any modules found in the current path.
|
||||||
|
|
||||||
|
Useful command-line options
|
||||||
|
=================
|
||||||
|
|
||||||
|
In case you want to load modules that are in different folders under the same path, use the next option.
|
||||||
|
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
python -m senpy -f .
|
python -m senpy -f .
|
||||||
|
|
||||||
|
The default port used by senpy is 5000, but you can change it using the option `--port`.
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
python -m senpy --port 8080
|
||||||
|
|
||||||
|
Also, the host can be changed where senpy is deployed. The default value is `127.0.0.1`.
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
python -m senpy --host 125.1.2.3
|
||||||
|
|
||||||
For more options, see the `--help` page.
|
For more options, see the `--help` page.
|
||||||
|
|
||||||
Alternatively, you can use the modules included in senpy to build your own application.
|
Alternatively, you can use the modules included in senpy to build your own application.
|
||||||
|
Loading…
Reference in New Issue
Block a user