Dockerfiles | ||
.gitignore | ||
asgi.py | ||
Caddyfile.dev | ||
Caddyfile.pro | ||
Caddyfile.staging | ||
django-launcher.dev.sh | ||
django-launcher.pro.sh | ||
docker-compose.dev.yaml | ||
docker-compose.pro.yaml | ||
docker-compose.staging.yaml | ||
gulpfile.js | ||
make-a-backup.sh | ||
Makefile | ||
package.json | ||
README.md | ||
requirements.txt | ||
settings.py |
Install
make docker.recreate.django
make run.loaddata
make run.server
Now open:
http://api.localhost
Gulp
npm i
Run.
gulp dev
Tools
Lint
make lint
Formatear
make format
Recrear imagen de Django
make docker.recreate.django
Hacer una nueva migración después de cambiar un model.
make makemigrations
Migrar
make run.migrate
Cargar data mínima.
make run.loaddata
Generar data de desarrollo.
make run.loaddata.test
Other domains
- Caddy:
http://api.localhost
. - Gulp:
http://api.localhost:3000
. - Django:
http://api.localhost:8000
. - Mailhog:
http://api.localhost:8025
.
Bash Django
docker exec -it api_django_1 bash
Run production
docker-compose -f docker-compose.pro.yaml up
Open https://domain.com
.