From 959bcc4b448b28961be4a4dc19d119003ab4afc0 Mon Sep 17 00:00:00 2001 From: Sage Abdullah Date: Wed, 23 Feb 2022 12:31:48 +0700 Subject: [PATCH] Add instruction to open a PostgreSQL shell session --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a0537ba..5ccf78e 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ WARNINGS: File not found: /code/wagtail/wagtail/admin/static/wagtailadmin/css/normalize.css``` -``` +``` ```sh # 7. Now in a new shell, run the databse setup script. The database will be persisted across container executions by Docker's Volumes system so you will only need to run this commmand the first time you start the database. @@ -85,23 +85,30 @@ web ./manage.py runserver 0.0. ... Up 0.0.0.0:8000->8000/tcp ``` ### Run tests + ```sh docker-compose exec -w /code/wagtail web python runtests.py ``` -### You can open a django shell session +### Open a Django shell session ```sh docker-compose exec web python manage.py shell ``` -### You can open a shell on the web server +### Open a PostgreSQL shell session + +```sh +docker-compose exec web dbshell +``` + +### Open a shell on the web server ```sh docker-compose exec web bash ``` -### You can open a shell to work with the frontend code (Node/NPM) +### Open a shell to work with the frontend code (Node/NPM) ```sh docker-compose exec frontend bash