A script to painlessly set up a Vagrant environment for development of Wagtail.
- Checkouts of Wagtail, wagtaildemo, django-modelcluster and Willow ready to develop against
- Node.js / npm toolchain for front-end asset building
- Optional packages installed (PostgreSQL, ElasticSearch, Embedly, Sphinx...)
- Virtualenvs for Python 2 and 3
Clone this repo, and run:
./setup.sh
(On platforms that can't run shell scripts, run the commands from setup.sh manually instead.)
This will build a VM instance ready for you to SSH into:
vagrant ssh
Start up wagtaildemo:
./manage.py runserver 0.0.0.0:8000
and visit http://localhost:8000. The admin interface is at http://localhost:8000/admin/ - log in with admin / changeme
Run tests:
cd ../wagtail
./runtests.py
Build front-end assets:
cd ../wagtail
npm run build
(or npm run watch
to watch the source files for changes)
Build the docs:
cd ../wagtail/docs
make html
Switch to Python 2.7:
source ~/.virtualenvs/wagtailpy2/bin/activate
And back to Python 3:
source ~/.virtualenvs/wagtaildemo/bin/activate