Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to seed/reset the db in dev #1178

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ To **annotate** a service, navigate to the services page from the top-right menu

For a demonstration of how annotations work, feel free to [inspect the video attached to this PR](https://github.com/tosdr/edit.tosdr.org/pull/1116).

### Resetting the database

To reset the database, add a line `command: sleep 6000` for phoenix in the docker-compose.yml, then run `docker compose up` and then you can:
```sh
docker exec -it edittosdrorg-web-1 /bin/bash
root@c8d0c53945a9:/usr/src/edit.tosdr.org# bundle exec rails db:reset
```

### Hypothesis installation - part 1

H is the Hypothesis web service and api.
Expand Down
2 changes: 1 addition & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ default: &default

development:
<<: *default
database: postgres
database: phoenix_development

# The specified database role being used to connect to postgres.
# To create additional roles in postgres see `$ createuser --help`.
Expand Down