mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
🔀 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:
commit
0edf53d203
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("--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)
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ Commands:
|
|||
generate-token Generate a token, which can be used as an agent’s...
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue