Skip to content

Commit 37987be

Browse files
authored
Update README.md (#101)
1 parent 29948c3 commit 37987be

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ The docker-compose setup uses a mount from the host to keep the postgres databas
5858
However, this does require a convoluted way to add content to the DB as follows
5959

6060
```
61+
docker-compose down
62+
# needed since dropping the schema can still leave some user information behind
63+
sudo rm -Rf postgres-data/
64+
nohup docker-compose up --force-recreate --remove-orphans &
6165
docker cp /tmp/backup.sql <container>:/tmp
6266
docker exec -ti <container> /bin/bash
6367
su - postgres
@@ -66,6 +70,9 @@ DROP SCHEMA public CASCADE;
6670
CREATE SCHEMA public;
6771
\quit
6872
psql -f /tmp/backup.sql
73+
# run migration using newly loaded DB
74+
docker-compose down
75+
nohup docker-compose up --force-recreate --remove-orphans &
6976
```
7077

7178
Note that database migration is run once during the startup process and is controlled via the `DATABASE_GENERATED` variable. Answer `yes` if you are working as a developer and want to start work from scratch from an empty database. Answer `no` if you are working as an administrator and/or wish to start Dockstore from a production or staging copy of the database.

0 commit comments

Comments
 (0)