Skip to content

abadger1406/hra

Repository files navigation

Health Research Authority Wagtail site

Setting up a local build

This repository includes a Vagrantfile for running the project in a Debian VM and a fabfile for running common commands with Fabric.

To set up a new build:

git clone git@github.com:torchbox/hra.git
cd hra
vagrant up
vagrant ssh

Then within the SSH session:

dj createsuperuser
djrun

This will make the site available on the host machine at: http://127.0.0.1:8000/

Available Fabric commands

To populate your local database with the content of staging/production:

fab pull_staging_data
fab pull_production_data

Additionally, to fetch images from staging:

fab pull_staging_media

(This will only take the "original" images. New versions of the other renditions will be recreated on the fly.)

To deploy the site to staging/production:

fab deploy_staging
fab deploy_production

About

Health Research Authority

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published