From 212fca65248fc89670fb4a04a317b7c4f2515065 Mon Sep 17 00:00:00 2001 From: Scott Wales Date: Fri, 8 Sep 2023 13:47:49 +1000 Subject: [PATCH 1/3] Allow setting user conf through environment variables --- CONTRIBUTING.md | 1 + README.md | 6 ++++-- cylc/uiserver/config_util.py | 2 +- cylc/uiserver/logging_util.py | 2 +- cylc/uiserver/tests/test_config.py | 14 ++++++++++++++ cylc/uiserver/tests/test_logging_util.py | 7 +++++++ 6 files changed, 28 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 41ef50ae..4c8b2e7a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -52,6 +52,7 @@ below. - David Matthews - Mel Hall - Christopher Bennett + - Scott Wales (All contributors are identifiable with email addresses in the git version diff --git a/README.md b/README.md index 318e9ae7..2133b517 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,8 @@ The Cylc Hub will load the following files in order: 3) User Config - This file + This file configures the Hub/UIS for the current user. The default path can + be changed by the ``CYLC_CONF_PATH`` environment variable. (`~/.cylc/uiserver/jupyter_config.py`) @@ -174,7 +175,8 @@ are run use the `ServerApp.jpserver_extensions` configuration, see the [Jupyter Server configuration documentation](https://jupyter-server.readthedocs.io/en/latest/other/full-config.html#other-full-config). By default the Cylc part of the UI Server log is written to -`~/.cylc/uiserver/uiserver.log`. +`~/.cylc/uiserver/log/log`. This can be changed with the environment +variable ``CYLC_UISERVER_LOG_PATH``. +### Enhancements +[#496](https://github.com/cylc/cylc-uiserver/pull/496) - Allow configuring the +user config path and log path with environment variables + ### Fixes [#379](https://github.com/cylc/cylc-uiserver/pull/379) - Fixed lack of info