Skip to content

Commit

Permalink
Adds environment configuration variables for server deployment options
Browse files Browse the repository at this point in the history
  • Loading branch information
mrharpo committed Nov 8, 2024
1 parent 33ae34a commit 6dc6f5d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions docker_entrypoints/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ python3 manage.py collectstatic --noinput

# Run the production server
gunicorn ov_wag.wsgi:application \
-b 0.0.0.0:8000 \
--workers 2 \
--forwarded-allow-ips '*' \
--access-logfile - \
--error-logfile -
-b "${OV_HOST:-0.0.0.0:8000}" \
--workers "${OV_WORKERS:-2}" \
--forwarded-allow-ips "${OV_FORWARDED_ALLOW_IPS:-*}" \
--access-logfile "${OV_ACCESS_LOGFILE:--}" \
--error-logfile "${OV_ERROR_LOGFILE:--}"
# --access-logfile /logs/access.log \
# --error-logfile /logs/error.log
6 changes: 3 additions & 3 deletions ov_collections/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ class Meta:
class ContentBlock(StructBlock):
"""Generic External link block
)
from wagtail.images.blocks import ImageBlock
title: RichTextBlock with italics only
link: URLBlock
Attributes:
title: RichTextBlock with italics only
link: URLBlock
"""

Expand Down

0 comments on commit 6dc6f5d

Please sign in to comment.