Skip to content
This repository was archived by the owner on Jan 14, 2020. It is now read-only.

Commit 31568e2

Browse files
tomlintonFranck
authored and
Franck
committed
Change to DATABASE_URL for configuring db-migrate (#561)
1 parent 8e6f238 commit 31568e2

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

daemon/indexing/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ If you want to index data in Postgres:
1919

2020
docker-compose up postgres # start the postgres container.
2121

22-
# create the postgres DB schema:
23-
docker exec -ti -w /app/daemon/indexing origin-js node node_modules/db-migrate/bin/db-migrate -e origin-box-genesis db:create origin-indexing
24-
docker exec -ti -w /app/daemon/indexing origin-js node node_modules/db-migrate/bin/db-migrate up
22+
Run the database migrations:
23+
24+
docker exec -ti -e DATABASE_URL=postgres://origin:origin@postgres/origin -w /app/daemon/indexing origin-js node node_modules/db-migrate/bin/db-migrate up
2525

2626
If you want to index data in Elasticsearch, start the elasticsearch container.
2727

daemon/indexing/database.json

-17
This file was deleted.

0 commit comments

Comments
 (0)