🔀 Merge branch 'fix-35' into 'main'

📝 — Server start is for testing or dev only

See merge request framasoft/framaspace/argos!45
This commit is contained in:
Luc Didry 2024-04-18 09:57:56 +00:00
commit 0edf53d203
2 changed files with 11 additions and 3 deletions

View file

@ -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("--reload", is_flag=True, help="Enable hot reloading")
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
uvicorn.run("argos.server:app", host=host, port=port, reload=reload)

View file

@ -81,7 +81,7 @@ Commands:
generate-token Generate a token, which can be used as an agents...
migrate Run database migrations
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]]]
@ -96,7 +96,11 @@ Commands:
```man
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:
--host TEXT Host to bind