From 254e5ed2397c9b64bdd7956b77abc77638a9a067 Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Mon, 13 Apr 2020 15:00:44 +1000 Subject: [PATCH] [MISC] Fix authelia-{backend,frontend} dev server logging and startup (#862) #767 added an interactive tty to the authelia-frontend server due toe a bump in react-scripts, this in turn consumes all logging and pages on a failure and made it difficult to interact with within the dev workflow. The tty has been replaced with an open stdin as this also satisfies the react-scripts requirement. This change also ignores the web directory in the reflex script to avoid errors and long start-ups in the authelia-frontend container. --- .../example/compose/authelia/docker-compose.frontend.dev.yml | 2 +- internal/suites/example/compose/authelia/resources/reflex.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/suites/example/compose/authelia/docker-compose.frontend.dev.yml b/internal/suites/example/compose/authelia/docker-compose.frontend.dev.yml index 962c0da71..1a159cf93 100644 --- a/internal/suites/example/compose/authelia/docker-compose.frontend.dev.yml +++ b/internal/suites/example/compose/authelia/docker-compose.frontend.dev.yml @@ -9,7 +9,7 @@ services: GROUP_ID: ${GROUP_ID} command: '/resources/entrypoint-frontend.sh' working_dir: /app - tty: true + stdin_open: true volumes: - './example/compose/authelia/resources/:/resources' - '../../web:/app' diff --git a/internal/suites/example/compose/authelia/resources/reflex.conf b/internal/suites/example/compose/authelia/resources/reflex.conf index 1afafadc1..7be5ae361 100644 --- a/internal/suites/example/compose/authelia/resources/reflex.conf +++ b/internal/suites/example/compose/authelia/resources/reflex.conf @@ -1 +1 @@ --r '(\.go$|go\.mod|\.sh|\.yml)' -s /resources/run-backend-dev.sh \ No newline at end of file +-R '^web/' -r '(\.go$|go\.mod|\.sh|\.yml)' -s /resources/run-backend-dev.sh \ No newline at end of file