mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-16 11:02:22 +03:00
Add docs for using just when developing locally with docker
This commit is contained in:
parent
488995ee96
commit
3af5305a73
|
@ -242,6 +242,31 @@ The stack comes with a dedicated node service to build the static assets, watch
|
||||||
.. _Sass: https://sass-lang.com/
|
.. _Sass: https://sass-lang.com/
|
||||||
.. _live reloading: https://browsersync.io
|
.. _live reloading: https://browsersync.io
|
||||||
|
|
||||||
|
|
||||||
|
Using Just for Docker Commands
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
We have included a ``justfile`` to simplify the use of frequent Docker commands for local development. Here are the available commands:
|
||||||
|
|
||||||
|
- ``just build``
|
||||||
|
Builds the Python image using the local Docker Compose file.
|
||||||
|
|
||||||
|
- ``just up``
|
||||||
|
Starts the containers in detached mode and removes orphaned containers.
|
||||||
|
|
||||||
|
- ``just down``
|
||||||
|
Stops the running containers.
|
||||||
|
|
||||||
|
- ``just prune``
|
||||||
|
Stops and removes containers along with their volumes. You can optionally pass an argument with the service name to prune a single container.
|
||||||
|
|
||||||
|
- ``just logs``
|
||||||
|
Shows container logs. You can optionally pass an argument with the service name to view logs for a specific service.
|
||||||
|
|
||||||
|
- ``just manage <command>``
|
||||||
|
Runs Django management commands within the container. Replace ``<command>`` with any valid Django management command, such as ``migrate``, ``createsuperuser``, or ``shell``.
|
||||||
|
|
||||||
|
|
||||||
(Optionally) Developing locally with HTTPS
|
(Optionally) Developing locally with HTTPS
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user