From 807102a02f1342a63b6b80819e1fa8c6ce604149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20A=2E=20Matienzo?= Date: Tue, 19 Aug 2025 14:35:50 -0700 Subject: [PATCH] fix loading of test ui * updates ucblib CSS to use unminified but latest version pulling from the production library website * allow docker compose to accept the SERVE_TEST_UI environment variable --- README.md | 8 +++++++- docker-compose.yml | 2 ++ public/index.html | 4 +--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ef9770d..45d38b3 100644 --- a/README.md +++ b/README.md @@ -227,7 +227,13 @@ docker compose exec app rails db:create docker compose exec app rails db:migrate ``` -This will load some sample data into the database. You will then need to run the galc-ui application (from the [`galc-ui`](/BerkeleyLibrary/galc-ui) repository) in order to test the API. +This will load some sample data into the database. You will then need to run the galc-ui application (from the [`galc-ui`](/BerkeleyLibrary/galc-ui) repository) in order to test the API. As a shortcut, you can set the `SERVE_TEST_UI` environment variable to `true` when you bring the containers up to fetch the assets for the latest `galc-ui`' snapshot: + +```bash +docker compose down +SERVE_TEST_UI=true docker compose up -d +``` + If, instead, you want to create the database and not load the sample data, you can run... ```bash diff --git a/docker-compose.yml b/docker-compose.yml index 2bc0d83..ac735ae 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,6 +16,8 @@ services: ports: - 3000:3000 restart: always + environment: + - SERVE_TEST_UI db: environment: diff --git a/public/index.html b/public/index.html index e0057a2..47ee7f7 100644 --- a/public/index.html +++ b/public/index.html @@ -9,9 +9,7 @@ - - - +