💚(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:
committed by
Anthony LC
parent
f0a4de361e
commit
7c6e48975d
@@ -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(
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user