mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 17:47:08 +03:00
Update developing-locally-docker.rst
This commit is contained in:
parent
370cefdf24
commit
3dfb5d1564
|
@ -18,10 +18,11 @@ Prerequisites
|
||||||
|
|
||||||
* Docker; if you don't have it yet, follow the `installation instructions`_;
|
* Docker; if you don't have it yet, follow the `installation instructions`_;
|
||||||
* Docker Compose; refer to the official documentation for the `installation guide`_.
|
* Docker Compose; refer to the official documentation for the `installation guide`_.
|
||||||
|
* Pre-commit; refer to the official documentation for the `installation guide`_.
|
||||||
|
|
||||||
.. _`installation instructions`: https://docs.docker.com/install/#supported-platforms
|
.. _`installation instructions`: https://docs.docker.com/install/#supported-platforms
|
||||||
.. _`installation guide`: https://docs.docker.com/compose/install/
|
.. _`installation guide`: https://docs.docker.com/compose/install/
|
||||||
|
.. _`pre-commit`: https://pre-commit.com/#install
|
||||||
|
|
||||||
Build the Stack
|
Build the Stack
|
||||||
---------------
|
---------------
|
||||||
|
@ -32,16 +33,12 @@ This can take a while, especially the first time you run this particular command
|
||||||
|
|
||||||
Generally, if you want to emulate production environment use ``production.yml`` instead. And this is true for any other actions you might need to perform: whenever a switch is required, just do it!
|
Generally, if you want to emulate production environment use ``production.yml`` instead. And this is true for any other actions you might need to perform: whenever a switch is required, just do it!
|
||||||
|
|
||||||
Before doing any commit, pre-commit hooks are required on your local machine, outside of docker::
|
Before doing any git commit, `pre-commit`_ should be installed globally on your local machine, and then::
|
||||||
|
|
||||||
$ pip install -r requirements/local.txt # Advisable within a virtualenv if possible
|
$ git init
|
||||||
$ git init # A git repo is required for pre-commit to install
|
|
||||||
$ pre-commit install
|
$ pre-commit install
|
||||||
|
|
||||||
.. note::
|
Failing to do so will result with a bunch of CI and Linter errors that can be avoided with pre-commit.
|
||||||
|
|
||||||
the `pre-commit` hook exists in the generated project as default.
|
|
||||||
For the details of `pre-commit`, follow the `pre-commit`_ site.
|
|
||||||
|
|
||||||
|
|
||||||
Run the Stack
|
Run the Stack
|
||||||
|
|
Loading…
Reference in New Issue
Block a user