💚(ci) improve local deployment with tilt

Change the way we start django app in order to be abble to use django
admin on local deployment
This commit is contained in:
Jacques ROUSSEL
2024-05-13 10:29:36 +02:00
committed by Anthony LC
parent f0a4de361e
commit 7c6e48975d
2 changed files with 8 additions and 1 deletions

View File

@@ -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(

View File

@@ -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"