0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
wagtail/.squash.yml

27 lines
1.2 KiB
YAML
Raw Normal View History

2019-03-05 02:01:47 +01:00
deployments:
default:
dockerimage: python:3.10.5-slim-buster
2019-03-05 02:01:47 +01:00
build_steps:
- apt-get update && apt-get install -y libssl-dev libpq-dev git build-essential libfontconfig1 libfontconfig1-dev curl
- RUN bash -c "curl -sL https://deb.nodesource.com/setup_18.x | bash -"
- apt install -y nodejs
2019-03-21 23:24:04 +01:00
- pip install setuptools pip --upgrade --force-reinstall
- cd /code
post_build_steps:
- npm ci --audit=false --progress=false
- npm run build
- pip install /code
2019-03-05 02:01:47 +01:00
- mkdir /myproject
- cd /myproject
- wagtail start mysite
- cd /myproject/mysite
- python manage.py migrate
- echo "<br><h1>Wagtail test instance</h1><p>Log into <a href='/admin/'>/admin/</a> with 'admin' / 'changeme'.</p>" > 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 "CSRF_TRUSTED_ORIGINS = ['https://*.squash.io']" >> mysite/settings/dev.py
2019-03-05 02:01:47 +01:00
launch_steps:
2019-03-21 23:24:04 +01:00
- cd /myproject/mysite
- python manage.py runserver 0.0.0.0:80
port_forwarding: 80:80
2019-03-21 23:24:04 +01:00
run_options: -v ~/code:/code