From 796a9c9cad09879e6ec124ac4c099ac25da2fc06 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Tue, 6 Dec 2022 11:50:25 +0000 Subject: [PATCH] Add missing condition --- .../compose/production/django/Dockerfile | 2 +- {{cookiecutter.project_slug}}/production.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile index 891495750..d75c4b159 100644 --- a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile +++ b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile @@ -9,7 +9,7 @@ WORKDIR ${APP_HOME} COPY ./package.json ${APP_HOME} RUN npm install && npm cache clean --force COPY . ${APP_HOME} -{%- if cookiecutter.use_whitenoise == 'n' %} +{%- if cookiecutter.frontend_pipeline == 'Webpack' and cookiecutter.use_whitenoise == 'n' %} {%- if cookiecutter.cloud_provider == 'AWS' %} ARG DJANGO_AWS_STORAGE_BUCKET_NAME ENV DJANGO_AWS_STORAGE_BUCKET_NAME=${DJANGO_AWS_STORAGE_BUCKET_NAME} diff --git a/{{cookiecutter.project_slug}}/production.yml b/{{cookiecutter.project_slug}}/production.yml index 5c609ce12..c0eb0fafd 100644 --- a/{{cookiecutter.project_slug}}/production.yml +++ b/{{cookiecutter.project_slug}}/production.yml @@ -10,7 +10,7 @@ services: build: context: . dockerfile: ./compose/production/django/Dockerfile - {%- if cookiecutter.use_whitenoise == 'n' %} + {%- if cookiecutter.frontend_pipeline == 'Webpack' and cookiecutter.use_whitenoise == 'n' %} args: # These variable can be defined in an .env file in the root of the repo {%- if cookiecutter.cloud_provider == 'AWS' %}