Skip to content

Commit

Permalink
chore: add in Sample indexing to db/seeds and updated README.md with …
Browse files Browse the repository at this point in the history
…opensearch instructions.
  • Loading branch information
ericenns committed Dec 11, 2024
1 parent 53a4784 commit 9d191db
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ bundle && pnpm install
```

Generate credentials:

```bash
EDITOR=nano bin/rails credentials:edit
```
Expand Down Expand Up @@ -98,6 +99,15 @@ Start postgresql service:
sudo systemctl start postgresql.service
```

## OpenSearch Setup

Install [OpenSearch](https://opensearch.org/downloads.html). For [Homebrew](https://brew.sh/), use:

```sh
brew install opensearch
brew services start opensearch
```

## Serve

```bash
Expand Down
3 changes: 3 additions & 0 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -803,4 +803,7 @@ def seed_exports # rubocop:disable Metrics/AbcSize, Metrics/MethodLength, Metric
DataExport.suppressing_turbo_broadcasts do
seed_exports
end

# index samples using searchkick
Sample.reindex
end

0 comments on commit 9d191db

Please sign in to comment.