This project contains technical documentation written in Markdown in the /docs folder. The latest build (from the develop
branch) can be viewed online at:
https://nationalarchives.github.io/ds-wagtail/
Local development is done in Docker. You can find out more about this here.
Convenience commands have been added to fabfile.py
to help you interact with the various services. But, for any of these commands to work, you must first install Fabric.
Once installed, you can type fab -l
to see a list of available commands.
cp .env.example .env
fab start
This command takes care of the following:
- Building all of the necessary Docker containers
- Starting all of the necessary Docker containers
- Installing any new python dependencies
- Collect static assets
- Starts development server
# ...from within the dev container
fab dev
manage createsuperuser
# ...or on the host machine
fab create-superuser
Navigate to the admin URL in your browser, and sign in using the username/password combination you chose in the previous step.
If you are running a Unix based operating system, these alias commands may be useful to you to run inside the Docker container.
git checkout develop
git pull
git remote -v
# should see
# origin [email protected]:nationalarchives/ds-ohos-wagtail.git (fetch)
# origin [email protected]:nationalarchives/ds-ohos-wagtail.git (push)
# upstream https://github.com/nationalarchives/ds-wagtail.git (fetch)
# upstream https://github.com/nationalarchives/ds-wagtail.git (push)
# if not, then
git remote add upstream https://github.com/nationalarchives/ds-wagtail.git
#
git remote -v
git checkout develop
git fetch upstream
# NOTE:
# - Keep out non OHOS related bits- ex: whatson, collections, etc
# - look out for any overritten bits from Etna
# - ideally OHOS related bits should overwrite Etna bits
git merge upstream/develop
# check, fix and commit
# run ohos local and check
git push
Create ticket branch off ds-ohos-wagtail:develop
Merge PR into ds-ohos-wagtail:develop
Merge ds-ohos-wagtail:develop
into ohos
- this will kickoff a CD process to deploy to OHOS
If you are running a Unix based operating system, these alias commands may be useful to you to run inside the Docker container.
Check out the Local development gotchas page for solutions to common issues.