Closed monkut closed 4 years ago
Ok, it appears that this was an issue with my django ALLOWED_HOSTS
setting.
I had it set to only my deployed APIGW host set, needed to add localhost to allow the build
command to execute;
Invalid HTTP_HOST header: 'localhost'. You may need to add 'localhost' to ALLOWED_HOSTS.
After adding localhost
in addition to the APIGW host this is no longer an issue, closing.
I'm trying to automate publish to an s3 bucket, and am using the wagtail
page_published
signal to which connects to a function that uses,call_command()
to call build.This appears to work locally, but in my production environment on lambda/efs (via zappa/django-storages) the resulting
index.html
file seems to generate the following:Any idea on how to debug this?