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 @@ - - - +