Always keep Heroku post-compile hooks

This commit is contained in:
Bruno Alla 2023-05-31 11:03:33 +01:00
parent 7d39b56749
commit d216bfbae1
No known key found for this signature in database
2 changed files with 2 additions and 6 deletions

View File

@ -96,10 +96,6 @@ def remove_heroku_files():
# don't remove the file if we are using travisci but not using heroku
continue
os.remove(file_name)
remove_heroku_build_hooks()
def remove_heroku_build_hooks():
shutil.rmtree("bin")
@ -442,8 +438,6 @@ def main():
if "{{ cookiecutter.use_heroku }}".lower() == "n":
remove_heroku_files()
elif "{{ cookiecutter.frontend_pipeline }}" != "Django Compressor":
remove_heroku_build_hooks()
if "{{ cookiecutter.use_docker }}".lower() == "n" and "{{ cookiecutter.use_heroku }}".lower() == "n":
if "{{ cookiecutter.keep_local_envs_in_vcs }}".lower() == "y":

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash
{%- if "{{ cookiecutter.frontend_pipeline }}" != "Django Compressor" %}
compress_enabled() {
python << END
import sys
@ -19,5 +20,6 @@ if compress_enabled
then
python manage.py compress
fi
{%- endif %}
python manage.py collectstatic --noinput
python manage.py compilemessages --noinput