├── .gitpod.Dockerfile ├── .gitpod.yml └── README.md /.gitpod.Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gitpod/workspace-full 2 | ENV PYTHONUSERBASE=/workspace/.pip-modules 3 | ENV PATH=$PYTHONUSERBASE/bin:$PATH 4 | ENV PIP_USER=yes 5 | -------------------------------------------------------------------------------- /.gitpod.yml: -------------------------------------------------------------------------------- 1 | image: 2 | file: .gitpod.Dockerfile 3 | 4 | tasks: 5 | - init: | 6 | python -m pip install wagtail 7 | source ~/.bashrc 8 | wagtail start mysite . 9 | python -m pip install -r requirements.txt 10 | python manage.py migrate 11 | echo "from django.contrib.auth import get_user_model; get_user_model().objects.create_superuser('admin', '', 'changeme')" | python manage.py shell 12 | echo "CSRF_TRUSTED_ORIGINS = ['https://*.gitpod.io']" >> mysite/settings/base.py 13 | command: | 14 | python manage.py runserver 15 | 16 | ports: 17 | - port: 8000 18 | onOpen: open-preview 19 | 20 | vscode: 21 | extensions: 22 | - ms-python.python 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Wagtail Gitpod 2 | 3 | Launch a ready-to-code Wagtail development environment with a single click. 4 | 5 | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/wagtail/wagtail-gitpod) 6 | 7 | Steps: 8 | 9 | 1. Click the ``Open in Gitpod`` button. 10 | 2. Relax: a development environment with an active Wagtail site will be created for you. 11 | 3. Login at `/admin/` with username `admin` and password `changeme` 12 | 13 | You have skipped the first part of the Wagtail tutorial. 14 | Continue the tutorial at [Extend the HomePage model](https://docs.wagtail.io/en/stable/getting_started/tutorial.html#extend-the-homepage-model). 15 | 16 | ![Wagtail Gitpod screenshot](https://user-images.githubusercontent.com/1969342/82453552-f4c9aa00-9ab0-11ea-90ce-e37b5f680f8d.png) 17 | 18 | 19 | ## Prebuilds 20 | 21 | Gitpod [prebuild](https://www.gitpod.io/docs/prebuilds) reduces wait time, by installing dependencies and running builds **before** you start a new workspace. 22 | 23 | Unfortunately, prebuilds work as a cache. If you could encounter a prebuild with outdated packages. Open an issue. 24 | --------------------------------------------------------------------------------