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

Commit 1345f2c

Browse files
author
Matthew Fisher
authored
docs(README): update database usage in tests (#1233)
1 parent c954b31 commit 1345f2c

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ postgres: check-docker
4646
docker start postgres || docker run --restart="always" -d -p 5432:5432 --name postgres postgres:9.3
4747
docker exec postgres createdb -U postgres deis 2>/dev/null || true
4848
@echo "To use postgres for local development:"
49-
@echo " export PGHOST=`docker-machine ip $$(docker-machine active) 2>/dev/null || echo 127.0.0.1`"
50-
@echo " export PGPORT=5432"
51-
@echo " export PGUSER=postgres"
49+
@echo " export DEIS_DATABASE_SERVICE_HOST=`docker-machine ip $$(docker-machine active) 2>/dev/null || echo 127.0.0.1`"
50+
@echo " export DEIS_DATABASE_SERVICE_PORT=5432"
51+
@echo " export DEIS_DATABASE_USER=postgres"
5252

5353
setup-venv:
5454
python3 -m venv venv

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ After you have a working Kubernetes cluster, you're ready to [install Workflow](
4545

4646
The application and tests use PostgreSQL. To start a local instance via Docker, run `make postgres` and set the following in your shell:
4747
```
48-
export PGHOST=`docker-machine ip $(docker-machine active) 2>/dev/null || echo 127.0.0.1`
49-
export PGPORT=5432
50-
export PGUSER=postgres
48+
export DEIS_DATABASE_SERVICE_HOST=`docker-machine ip $(docker-machine active) 2>/dev/null || echo 127.0.0.1`
49+
export DEIS_DATABASE_SERVICE_PORT=5432
50+
export DEIS_DATABASE_USER=postgres
5151
```
5252

5353
### Python

0 commit comments

Comments
 (0)