Skip to content

Commit

Permalink
Merge pull request #351 from wearefuturegov/feature/update-seed-readme
Browse files Browse the repository at this point in the history
Update seed notes in readme
  • Loading branch information
apricot13 authored Jun 24, 2024
2 parents 29939bf + bf6c46f commit a0a66ed
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,22 +103,27 @@ See [configuration](#-configuration) for setting up environmental variables.
**Populate with dummy data**

```sh
# default accessibilities, send_needs and suitabilities only
docker compose exec outpost bin/rails db:seed

# create a default admin user
docker compose exec outpost bin/rails SEED_ADMIN_USER=true db:seed

# create dummy data
docker compose exec outpost bin/rails SEED_DUMMY_DATA=true db:seed

# create default data
# default accessibilities, send_needs and suitabilities only
docker compose exec outpost bin/rails SEED_DEFAULT_DATA=true db:seed

# all of the above
docker compose exec outpost bin/rails SEED_ADMIN_USER=true SEED_DUMMY_DATA=true SEED_DEFAULT_DATA=true db:seed
```

The application will be running on `localhost:3000`.

**Populate mongo database**

```sh
docker compose exec outpost bin/rake build_public_index
```

**Run the rails console**

```sh
Expand Down

0 comments on commit a0a66ed

Please sign in to comment.