💚(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='..',
|
context='..',
|
||||||
dockerfile='../Dockerfile',
|
dockerfile='../Dockerfile',
|
||||||
only=['./src/backend', './src/mail', './docker'],
|
only=['./src/backend', './src/mail', './docker'],
|
||||||
target = 'backend-development',
|
target = 'backend-production',
|
||||||
live_update=[
|
live_update=[
|
||||||
sync('../src/backend', '/app'),
|
sync('../src/backend', '/app'),
|
||||||
run(
|
run(
|
||||||
|
|||||||
@@ -47,6 +47,13 @@ backend:
|
|||||||
python manage.py create_demo --force
|
python manage.py create_demo --force
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
|
||||||
|
command:
|
||||||
|
- "gunicorn"
|
||||||
|
- "-c"
|
||||||
|
- "/usr/local/etc/gunicorn/impress.py"
|
||||||
|
- "impress.wsgi:application"
|
||||||
|
- "--reload"
|
||||||
|
|
||||||
createsuperuser:
|
createsuperuser:
|
||||||
command:
|
command:
|
||||||
- "/bin/sh"
|
- "/bin/sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user