mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 17:47:08 +03:00
Remove .env when neither Docker nor Heroku are opted out for
This commit is contained in:
parent
281dde1d1d
commit
438ec0c101
|
@ -78,6 +78,8 @@ def remove_heroku_files():
|
|||
remove_file(os.path.join(PROJECT_DIR_PATH, file_name))
|
||||
|
||||
|
||||
def remove_dotenv_file():
|
||||
remove_file(os.path.join(PROJECT_DIR_PATH, '.env'))
|
||||
|
||||
|
||||
def remove_grunt_files():
|
||||
|
@ -243,6 +245,9 @@ def main():
|
|||
if '{{ cookiecutter.use_heroku }}'.lower() == 'n':
|
||||
remove_heroku_files()
|
||||
|
||||
if '{{ cookiecutter.use_docker }}'.lower() == 'n' and '{{ cookiecutter.use_heroku }}'.lower() == 'n':
|
||||
remove_dotenv_file()
|
||||
|
||||
if '{{ cookiecutter.js_task_runner}}'.lower() == 'gulp':
|
||||
remove_grunt_files()
|
||||
elif '{{ cookiecutter.js_task_runner}}'.lower() == 'grunt':
|
||||
|
|
Loading…
Reference in New Issue
Block a user