Update readme to include raw docker commands as well as makefile ones

pull/43/head
Steve 2022-05-11 11:01:17 -06:00
rodzic 34e45ff2ac
commit 94b8205b25
1 zmienionych plików z 56 dodań i 6 usunięć

Wyświetl plik

@ -90,59 +90,87 @@ web ./manage.py runserver 0.0. ... Up 0.0.0.0:8000->8000/tcp
```sh
make build
```
or
```sh
docker-compose build web
```
### Bring the backend Docker container up
```sh
make start
```
or
```sh
docker-compose up
```
### Stop all Docker containers
```sh
make stop
```
or
```sh
docker-compose stop
```
### Stop all and remove all Docker containers
```sh
make down
```
or
```sh
docker-compose down
```
### Run tests
```sh
make test
```
or
```sh
docker-compose exec -w /code/wagtail web python runtests.py
```
### Run tests for a specific file
```sh
make test file=wagtail.admin.tests.test_name.py
```
or
```sh
docker-compose exec -w /code/wagtail web python runtests.py wagtail.admin.tests.{test_file_name_here}.py
```
### Open a Django shell session
```sh
make ssh-shell
```
or
```sh
docker-compose exec web python manage.py shell
```
### Open a PostgreSQL shell session
```sh
make ssh-db
```
or
```sh
docker-compose exec web python manage.py dbshell
```
### Open a shell on the web server
```sh
make ssh
```
### Open a shell to work with the frontend code (Node/NPM)
or
```sh
make ssh-fe
docker-compose exec web bash
```
### Open a shell to work with the frontend code (Node/NPM)
@ -150,18 +178,40 @@ make ssh-fe
```sh
make ssh-fe
```
or
```sh
docker-compose exec frontend bash
```
### Open a shell to work within the wagtail container
```sh
make ssh-fe
```
or
```sh
docker-compose exec -w /code/wagtail web bash
```
### Make migrations to the wagtail bakery site
```sh
make migrations
```
or
```sh
docker-compose exec web python manage.py makemigrations
```
### Migrate the wagtail bakery site
```sh
make migrate
```
or
```sh
docker-compose exec web python manage.py migrate
```
Getting ready to contribute
---------------------------