Skip to content

Commit

Permalink
Add SKIP_TRANSLATION for initial setup
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mephillips-durham authored Oct 10, 2023
1 parent 0f5a47e commit 81d0520
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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):
Expand Down Expand Up @@ -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
1. run `npm publish` to push the javascript package to https://npmjs.org/package/spotlight-frontend

0 comments on commit 81d0520

Please sign in to comment.