From 7c6e48975d4504444b625f7db8c8503309033f58 Mon Sep 17 00:00:00 2001 From: Jacques ROUSSEL Date: Mon, 13 May 2024 10:29:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A(ci)=20improve=20local=20deployment?= =?UTF-8?q?=20with=20tilt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change the way we start django app in order to be abble to use django admin on local deployment --- bin/Tiltfile | 2 +- src/helm/env.d/dev/values.impress.yaml.gotmpl | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/Tiltfile b/bin/Tiltfile index 28436689..6a67cf7c 100644 --- a/bin/Tiltfile +++ b/bin/Tiltfile @@ -7,7 +7,7 @@ docker_build( context='..', dockerfile='../Dockerfile', only=['./src/backend', './src/mail', './docker'], - target = 'backend-development', + target = 'backend-production', live_update=[ sync('../src/backend', '/app'), run( diff --git a/src/helm/env.d/dev/values.impress.yaml.gotmpl b/src/helm/env.d/dev/values.impress.yaml.gotmpl index 81f5b6b6..4361ae0f 100644 --- a/src/helm/env.d/dev/values.impress.yaml.gotmpl +++ b/src/helm/env.d/dev/values.impress.yaml.gotmpl @@ -47,6 +47,13 @@ backend: python manage.py create_demo --force restartPolicy: Never + command: + - "gunicorn" + - "-c" + - "/usr/local/etc/gunicorn/impress.py" + - "impress.wsgi:application" + - "--reload" + createsuperuser: command: - "/bin/sh"