From e565ecb6182685320f0b4857a2d3be5cf264a76f Mon Sep 17 00:00:00 2001 From: Storm Heg Date: Fri, 17 Sep 2021 18:22:44 +0200 Subject: [PATCH] Explicitly use port 80 for squash.io (#7523) Hopefully prevents scenarios where Squash prompts for a port number and a wrong port number is entered. This leads to the Squash deployment never finishing and eventually timing out. --- .squash.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.squash.yml b/.squash.yml index 5c3af44561..427403c28c 100644 --- a/.squash.yml +++ b/.squash.yml @@ -7,7 +7,7 @@ deployments: - apt install -y nodejs - pip install setuptools pip --upgrade --force-reinstall - cd /code - post_build_steps: + post_build_steps: - npm install --no-save --no-audit --progress=false - npm run dist - pip install /code @@ -17,8 +17,9 @@ deployments: - cd /myproject/mysite - python manage.py migrate - echo "

Wagtail test instance

Log into /admin/ with 'admin' / 'changeme'.

" > home/templates/home/welcome_page.html - - echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'admin@example.com', 'changeme')" | python manage.py shell + - echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'admin@example.com', 'changeme')" | python manage.py shell launch_steps: - cd /myproject/mysite - python manage.py runserver 0.0.0.0:80 + port_forwarding: 80:80 run_options: -v ~/code:/code