Skip to content

Commit

Permalink
build(build): add compress to build (remove pip install)
Browse files Browse the repository at this point in the history
remove default allowed host in prod
  • Loading branch information
Karl Wooster committed Aug 23, 2024
1 parent 568eda2 commit 980e9a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
# Exit on error
set -o errexit

# Modify this line as needed for your package manager (pip, poetry, etc.)
pip install -r requirements/production.txt

# Convert static asset files
python manage.py collectstatic --no-input

python manage.py compress

# Apply any outstanding database migrations
python manage.py migrate
2 changes: 1 addition & 1 deletion config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env("DJANGO_SECRET_KEY")
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS", default=["wooster.xyz"])
ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS")

# DATABASES
# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 980e9a2

Please sign in to comment.