mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2026-01-08 01:31:21 +03:00
Fix keep_local_envs_in_vcs user preference (#6132)
This commit is contained in:
parent
5ee64b4054
commit
2dd227332d
|
|
@ -136,10 +136,8 @@ ci_tool:
|
|||
5. `Drone CI`_
|
||||
|
||||
keep_local_envs_in_vcs:
|
||||
Indicates whether the project's ``.envs/.local/`` should be kept in VCS
|
||||
(comes in handy when working in teams where local environment reproducibility
|
||||
is strongly encouraged).
|
||||
Note: .env(s) are only utilized when Docker Compose and/or Heroku support is enabled.
|
||||
|
||||
Indicates whether the project’s .envs/.local/ should be kept in VCS (comes in handy when working in teams where local environment reproducibility is strongly encouraged).
|
||||
|
||||
debug:
|
||||
Indicates whether the project should be configured for debugging.
|
||||
|
|
|
|||
|
|
@ -450,10 +450,11 @@ def main(): # noqa: C901, PLR0912, PLR0915
|
|||
if "{{ cookiecutter.keep_local_envs_in_vcs }}".lower() == "y":
|
||||
print(
|
||||
INFO + ".env(s) are only utilized when Docker Compose and/or "
|
||||
"Heroku support is enabled so keeping them does not make sense "
|
||||
"given your current setup." + TERMINATOR,
|
||||
"Heroku support is enabled. Keeping them as requested, but they may not be useful "
|
||||
"in your current setup." + TERMINATOR,
|
||||
)
|
||||
remove_envs_and_associated_files()
|
||||
else:
|
||||
remove_envs_and_associated_files()
|
||||
else:
|
||||
append_to_gitignore_file(".env")
|
||||
append_to_gitignore_file(".envs/*")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user