django-template/README.md
Andros Fenollosa 400d0f1b9c Add template
2022-06-27 14:28:40 +02:00

89 lines
934 B
Markdown

# Install
``` sh
make docker.recreate.django
make run.loaddata
make run.server
```
Now open:
`http://ccstech.localhost`
## Gulp
```shell
npm i
```
Run.
```shell
gulp dev
```
## Tools
Lint
```shell
make lint
```
Formatear
```shell
make format
```
Recrear imagen de Django
```shell
make docker.recreate.django
```
Hacer una nueva migración después de cambiar un model.
```shell
make makemigrations
```
Migrar
```shell
make run.migrate
```
Cargar data mínima.
```shell
make run.loaddata
```
Generar data de desarrollo.
```shell
make run.loaddata.test
```
## Other domains
- Caddy: `http://ccstech.localhost`.
- Gulp: `http://ccstech.localhost:3000`.
- Django: `http://ccstech.localhost:8000`.
- Mailhog: `http://ccstech.localhost:8025`.
### Bash Django
``` shell
docker exec -it ccstech_django_1 bash
```
# Run production
``` sh
docker-compose -f docker-compose.pro.yaml up
```
Open `https://ccstech.io`.