From 3643b70392e71a8caaa2fbba3435281c77ffa49e Mon Sep 17 00:00:00 2001 From: Josh Thomas Date: Fri, 2 Aug 2024 15:33:18 -0400 Subject: [PATCH] fix default app compose build target (#268) --- CHANGELOG.md | 1 + src/django_twc_project/compose.yml.jinja | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d49572b7..84e42836 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Fixed - Fixed reference to correct `lock` command in `just docs upgrade` just command. +- Changed the `default-app` build target from `app` to `dev`. This fixes an error running the stack in development where the worker container does not have the development dependencies installed. ## [2024.40] diff --git a/src/django_twc_project/compose.yml.jinja b/src/django_twc_project/compose.yml.jinja index cd026d71..92c8e231 100644 --- a/src/django_twc_project/compose.yml.jinja +++ b/src/django_twc_project/compose.yml.jinja @@ -6,7 +6,7 @@ x-default-app: &default-app build: context: . dockerfile: Dockerfile - target: app + target: dev env_file: .env init: true user: "${UID:-1000}:${GID:-1000}" @@ -17,8 +17,6 @@ x-default-app: &default-app services: app: <<: *default-app - build: - target: dev command: python manage.py runserver 0.0.0.0:8000 --skip-checks {%- if include_vite %} depends_on: