mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
📝 — Server start is for testing or dev only (fix#35)
This commit is contained in:
parent
69cf92c83b
commit
199cbd7927
2 changed files with 11 additions and 3 deletions
|
@ -90,7 +90,11 @@ def agent(server_url, auth, max_tasks, wait_time, log_level):
|
||||||
@click.option("--config", default="config.yaml", help="Path the the configuration file")
|
@click.option("--config", default="config.yaml", help="Path the the configuration file")
|
||||||
@click.option("--reload", is_flag=True, help="Enable hot reloading")
|
@click.option("--reload", is_flag=True, help="Enable hot reloading")
|
||||||
def start(host, port, config, reload):
|
def start(host, port, config, reload):
|
||||||
"""Starts the server"""
|
"""Starts the server (use only for testing or development!)
|
||||||
|
|
||||||
|
See https://framasoft.frama.io/framaspace/argos/deployment/systemd.html#server
|
||||||
|
for advices on how to start the server for production.
|
||||||
|
"""
|
||||||
os.environ["ARGOS_YAML_FILE"] = config
|
os.environ["ARGOS_YAML_FILE"] = config
|
||||||
uvicorn.run("argos.server:app", host=host, port=port, reload=reload)
|
uvicorn.run("argos.server:app", host=host, port=port, reload=reload)
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ Commands:
|
||||||
generate-token Generate a token, which can be used as an agent’s...
|
generate-token Generate a token, which can be used as an agent’s...
|
||||||
migrate Run database migrations
|
migrate Run database migrations
|
||||||
reload-config Read tasks configuration and add/delete tasks in database...
|
reload-config Read tasks configuration and add/delete tasks in database...
|
||||||
start Starts the server
|
start Starts the server (use only for testing or development!)
|
||||||
```
|
```
|
||||||
|
|
||||||
<!--[[[end]]]
|
<!--[[[end]]]
|
||||||
|
@ -96,7 +96,11 @@ Commands:
|
||||||
```man
|
```man
|
||||||
Usage: argos server start [OPTIONS]
|
Usage: argos server start [OPTIONS]
|
||||||
|
|
||||||
Starts the server
|
Starts the server (use only for testing or development!)
|
||||||
|
|
||||||
|
See
|
||||||
|
https://framasoft.frama.io/framaspace/argos/deployment/systemd.html#server
|
||||||
|
for advices on how to start the server for production.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--host TEXT Host to bind
|
--host TEXT Host to bind
|
||||||
|
|
Loading…
Reference in a new issue