From 9c30e613041401a36f18bf0e33e64c72817834d2 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Tue, 10 Oct 2023 18:11:25 +0100 Subject: [PATCH] Add SKIP_TRANSLATION for initial setup If SKIP_TRANSLATION is not set in the environment when building the application and running the db:migrate then the process will fail as the translation tables will not be present in the database yet. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2bd8d1668..5eb5702cc 100644 --- a/README.md +++ b/README.md @@ -19,13 +19,13 @@ Read more about what Spotlight is, our motivations for creating it, and how to i To bootstrap a new Rails application: ``` -$ rails new app-name -m https://raw.githubusercontent.com/projectblacklight/spotlight/main/template.rb +$ SKIP_TRANSLATION=1 rails new app-name -m https://raw.githubusercontent.com/projectblacklight/spotlight/main/template.rb ``` or from an existing Rails application: ``` -$ rails app:template LOCATION=https://raw.githubusercontent.com/projectblacklight/spotlight/main/template.rb +$ SKIP_TRANSLATION=1 rails app:template LOCATION=https://raw.githubusercontent.com/projectblacklight/spotlight/main/template.rb ``` *During this process you will be prompted to enter an initial administrator email and password (this is a super-admin that can administer any exhibit in the installation).* If you choose not to create one, the first user will be given administrative privileges. @@ -39,7 +39,7 @@ $ cd app-name Run the database migrations: ``` -$ rake db:migrate +$ SKIP_TRANSLATION=1 rake db:migrate ``` Start Solr (possibly using `solr_wrapper` in development or testing): @@ -123,4 +123,4 @@ following steps: 1. [Install npm](https://www.npmjs.com/get-npm) 1. run `npm install` to download dependencies 1. run `npm run prepare` to build the bundle -1. run `npm publish` to push the javascript package to https://npmjs.org/package/spotlight-frontend \ No newline at end of file +1. run `npm publish` to push the javascript package to https://npmjs.org/package/spotlight-frontend