allcaps / gitpod-wagtail-develop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gitpod Wagtail Develop

Develop Wagtail CMS via Gitpod.

Open in Gitpod

Use wagtail-gitpod to develop a Wagtail website.

Steps

  1. Click the Open in Gitpod button.
  2. Relax: a development environment with Wagtail and Bakery Demo will be created for you.
  3. Login at /admin/ with username admin and password changeme

More on contributing and developing.

Contribute to Wagtail

Woo-hoo, you have a working development environment and know how to make a git commit. But how do you contribute to Wagtail? Here is how to fork Wagtail, create an access token, set a remote, and submit a pull request.

Fork Wagtail

Go to https://github.com/wagtail/wagtail and click on the Fork button in the top-right corner. It creates a new copy of Wagtail repo under your GitHub account. The URL will be https://github.com/USERNAME/wagtail

Create an access token

  1. Go to https://github.com/settings/tokens
  2. Click 'Generate new token'
  3. Give the token a 'Note' ('Wagtail GitPod' is a good one)
  4. If you plan to use this GitPod for more than a month, be sure to choose a longer expiration for the token
  5. Tick the checkbox next to 'repo'
  6. Click 'Generate token'
  7. Copy the token

Add remote

In Gitpod, in the menu choose Terminal and New Terminal.

cd wagtail
git remote add USERNAME https://USERNAME:TOKEN@github.com/USERNAME/wagtail.git

Create a branch and commit your work

git checkout -b BRANCH_NAME
git add PATH/TO/FILE.EXT
git commit -m "MESSAGE"

Submit a pull request

git push USERNAME
# remote: Create a pull request for 'BRANCH_NAME' on GitHub by visiting:
# remote: https://github.com/USERNAME/wagtail/pull/new/BRANCH_NAME

Open the link and follow the instructions.

Stop and continue

The Gitpod workspace will stop after 30 minutes of inactivity. If your workspace has stopped, reload the browser or go to your workspaces and restart the workspace. Gitpod automatically removes workspaces that are inactive for 14 days.

Prebuilds

Gitpod prebuild reduces wait time, by installing dependencies and running builds before you start a new workspace.

Unfortunately, these prebuilds work as a cache. You could encounter a prebuild with outdated packages.

If that is the case, you can trigger a new prebuild.

About


Languages

Language:Dockerfile 100.0%