Add instruction to open a PostgreSQL shell session (#40)

pull/41/head
sag᠎e 2022-02-28 16:26:27 +07:00 zatwierdzone przez GitHub
rodzic c0675bc90f
commit 6f3c8f619a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 11 dodań i 4 usunięć

Wyświetl plik

@ -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