This commit is contained in:
@@ -73,6 +73,14 @@ app_scheme="${APP_SCHEME:-http}"
|
||||
app_hostnames="${APP_HOSTS:-$app_host}"
|
||||
app_origin="${APP_ORIGINS:-}"
|
||||
|
||||
# De lokale healthcheck gebruikt 127.0.0.1. Houd die host en localhost altijd
|
||||
# toegestaan, ook wanneer APP_HOSTS expliciet door de runner is ingesteld.
|
||||
for required_host in 127.0.0.1 localhost; do
|
||||
if [[ ",$app_hostnames," != *",$required_host,"* ]]; then
|
||||
app_hostnames="${app_hostnames},${required_host}"
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ -z "$app_origin" ]]; then
|
||||
if [[ "$app_scheme" == "https" ]]; then
|
||||
if [[ "$app_port" == "443" ]]; then
|
||||
@@ -149,8 +157,6 @@ if [[ "${SKIP_HEALTHCHECK:-0}" != "1" ]]; then
|
||||
done
|
||||
fi
|
||||
|
||||
docker compose -f "$compose_file" exec -T web python manage.py collectstatic --noinput
|
||||
|
||||
cat <<"EOF"
|
||||
Deploy klaargezet.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user