Skip to content

Commit

Permalink
fix django production build
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Nov 14, 2023
1 parent 4e28cf0 commit 5b6dba9
Show file tree
Hide file tree
Showing 4 changed files with 236 additions and 433 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ x-django-prod-env: &django-prod-env
DJANGO_SECURE_SSL_REDIRECT: False
WEB_CONCURRENCY: 4
REDIS_URL: redis://redis:6379/0
DJANGO_ALLOWED_HOSTS: "localhost"
DJANGO_ALLOWED_HOSTS: "localhost,django"

x-django-dev-env: &django-dev-env
<<: *django-env
Expand Down
2 changes: 1 addition & 1 deletion helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ alias dpcli_dev="docker compose --profile dev --env-file secrets/docker"
alias dpcli_prod="docker compose --profile prod --env-file secrets/docker"

alias djcli_dev="docker compose --profile dev --env-file secrets/docker exec -it django-dev python manage.py"
alias djcli_prod="docker compose --profile prod --env-file secrets/docker exec -it django-dev python manage.py"
alias djcli_prod="docker compose --profile prod --env-file secrets/docker exec -it django python manage.py"
Loading

0 comments on commit 5b6dba9

Please sign in to comment.