Skip to content

Commit

Permalink
Slight correction of DB instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
glormph committed Apr 15, 2024
1 parent 730dd22 commit b576987
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,16 @@ Installing a new database dump:
```
# First delete the old DB - if there is none, first start the containers
# with "docker compose up" to initialize postgres:
docker compose run db dropdb kantele
docker compose run db createdb kantele
# Now install the new data
# If the containers are down:
docker compose run db psql -U kanteleuser -d kantele -f /pgbackups/file_with_dump.sql
# If you have the containers up:
docker compose exec db psql -U kanteleuser -d kantele -f /pgbackups/file_with_dump.sql
docker compose run db dropdb -U postgres kantele
docker compose run db createdb -U postgres kantele
# Now install the new data
docker compose run db psql -U postgres -d kantele -f /pgbackups/file_with_dump.sql
# If instead you have the containers up:
docker compose exec db dropdb -U postgres kantele
docker compose exec db createdb -U postgres kantele
docker compose exec db psql -U postgres -d kantele -f /pgbackups/file_with_dump.sql
```

## Testing
Expand Down

0 comments on commit b576987

Please sign in to comment.