Skip to content

Commit

Permalink
Merge pull request #5383 from hypothesis/add-make-sql
Browse files Browse the repository at this point in the history
Add `make sql`
  • Loading branch information
robertknight committed Oct 17, 2018
2 parents 26b9903 + fcc26e1 commit 004e0be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ clean:
dev: build/manifest.json
tox -e py27-dev

.PHONY: sql
sql:
docker-compose exec postgres psql -U postgres

## Build hypothesis/hypothesis docker image
.PHONY: docker
docker:
Expand Down
5 changes: 3 additions & 2 deletions docs/developing/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,12 @@ can be installed on:
.. tip::

You can use Docker Compose image to open a psql shell in your Dockerized
database container without having to install psql on your host machine. Do:
database container without having to install psql on your host machine.
We've provided a shortcut for this in our ``Makefile``, so just run:

.. code-block:: bash
docker-compose exec postgres psql -U postgres
make sql
.. tip::

Expand Down

0 comments on commit 004e0be

Please sign in to comment.