kopia lustrzana https://github.com/wagtail/docker-wagtail-develop
Update readme to include raw docker commands as well as makefile ones
rodzic
34e45ff2ac
commit
94b8205b25
62
README.md
62
README.md
|
@ -90,59 +90,87 @@ web ./manage.py runserver 0.0. ... Up 0.0.0.0:8000->8000/tcp
|
||||||
```sh
|
```sh
|
||||||
make build
|
make build
|
||||||
```
|
```
|
||||||
|
or
|
||||||
|
```sh
|
||||||
|
docker-compose build web
|
||||||
|
```
|
||||||
|
|
||||||
### Bring the backend Docker container up
|
### Bring the backend Docker container up
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make start
|
make start
|
||||||
```
|
```
|
||||||
|
or
|
||||||
|
```sh
|
||||||
|
docker-compose up
|
||||||
|
```
|
||||||
|
|
||||||
### Stop all Docker containers
|
### Stop all Docker containers
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make stop
|
make stop
|
||||||
```
|
```
|
||||||
|
or
|
||||||
|
```sh
|
||||||
|
docker-compose stop
|
||||||
|
```
|
||||||
### Stop all and remove all Docker containers
|
### Stop all and remove all Docker containers
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make down
|
make down
|
||||||
```
|
```
|
||||||
|
or
|
||||||
|
```sh
|
||||||
|
docker-compose down
|
||||||
|
```
|
||||||
|
|
||||||
### Run tests
|
### Run tests
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make test
|
make test
|
||||||
```
|
```
|
||||||
|
or
|
||||||
|
```sh
|
||||||
|
docker-compose exec -w /code/wagtail web python runtests.py
|
||||||
|
```
|
||||||
|
|
||||||
### Run tests for a specific file
|
### Run tests for a specific file
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make test file=wagtail.admin.tests.test_name.py
|
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
|
### Open a Django shell session
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make ssh-shell
|
make ssh-shell
|
||||||
```
|
```
|
||||||
|
or
|
||||||
|
```sh
|
||||||
|
docker-compose exec web python manage.py shell
|
||||||
|
```
|
||||||
|
|
||||||
### Open a PostgreSQL shell session
|
### Open a PostgreSQL shell session
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make ssh-db
|
make ssh-db
|
||||||
```
|
```
|
||||||
|
or
|
||||||
|
```sh
|
||||||
|
docker-compose exec web python manage.py dbshell
|
||||||
|
```
|
||||||
### Open a shell on the web server
|
### Open a shell on the web server
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make ssh
|
make ssh
|
||||||
```
|
```
|
||||||
|
or
|
||||||
### Open a shell to work with the frontend code (Node/NPM)
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make ssh-fe
|
docker-compose exec web bash
|
||||||
```
|
```
|
||||||
|
|
||||||
### Open a shell to work with the frontend code (Node/NPM)
|
### Open a shell to work with the frontend code (Node/NPM)
|
||||||
|
@ -150,18 +178,40 @@ make ssh-fe
|
||||||
```sh
|
```sh
|
||||||
make ssh-fe
|
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
|
### Make migrations to the wagtail bakery site
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make migrations
|
make migrations
|
||||||
```
|
```
|
||||||
|
or
|
||||||
|
```sh
|
||||||
|
docker-compose exec web python manage.py makemigrations
|
||||||
|
```
|
||||||
|
|
||||||
### Migrate the wagtail bakery site
|
### Migrate the wagtail bakery site
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make migrate
|
make migrate
|
||||||
```
|
```
|
||||||
|
or
|
||||||
|
```sh
|
||||||
|
docker-compose exec web python manage.py migrate
|
||||||
|
```
|
||||||
|
|
||||||
Getting ready to contribute
|
Getting ready to contribute
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
Ładowanie…
Reference in New Issue