Skip to content

thibaudcolas/wagtail-bakerydemo-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wagtail bakerydemo archive

Static snapshots of Wagtail’s bakerydemo across past versions of the CMS.

Supported features

Due to the snapshots being static, there are a few clear limitations:

  • Content / data is not editable. Form fields can be updated, but saving the changes won’t work.
  • Parts of the CMS relying on API calls only show their most basic functionality, such as:
    • Choosers
    • Live previews

Creating a new snapshot

First get a new bakerydemo copy set up:

mkdir v4.2
cd v4.2
git clone git@github.com:wagtail/bakerydemo.git
cd bakerydemo
# Remove the bakerydemodb from the list.
vim .gitignore
# Edit the wagtail requirement to target the desired version.
# Depending on the selected version, you may also need to switch to a specific commit of the bakerydemo, or make arbitrary changes to the code.
vim requirements/base.txt
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
./manage.py migrate
./manage.py load_initial_data
./manage.py collectstatic
./manage.py runserver 0:8000

Then prepare the backup,

cd v4.2
cp ../evergreen/backup.sh .
# Edit the backup.sh with the correct sprite URL from browser DevTools (`localStorage.getItem('wagtail:spriteRevision')`).
# Also make sure to use the correct folder name.
vim backup.sh
bash backup.sh

The last step of the backup script is to copy API response payloads, and set up redirects in Netlify so the right payload is served based on query parameter. This is only needed for the page explorer – other parts of the CMS will work with any static files server.

About

Static snapshots of Wagtail’s bakerydemo across past versions of the CMS.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published