Skip to content

openownership/openownership.org-wagtail

Repository files navigation

openownership.org

Codacy Badge Codacy Badge

This is a Wagtail site.

Sprint planner

First run

You'll probably want to do sudo nano /etc/hosts and add:

0.0.0.0 openownership.test

If you have access to the Hactar tooling

Make sure you have developer access to the EnvKey project and generate yourself an EnvKey. Save this to a .env file at the root of the project.

  1. git submodule update --init --recursive
  2. goenv
  3. gofab (and then probably cd ..)
  4. docker pull ghcr.io/hactar-is/openownership:latest
  5. docker-compose up --build -d
  6. fab docker.fish to get a shell inside the running web container

If you don't have access to Hactar tooling...

You'll need all the project's environment variables in a .env file expanded into the shell session.

  1. docker-compose up --build -d
  2. docker exec -it openownership_web_1 fish or docker exec -it openownership_web_1 zsh depending on your preference

Once you have a shell inside the web container

  1. manpy migrate
  2. manpy createsuperuser
  3. manpy populate_taxonomies # To create tags
  4. runserver

Site should now be accessible at http://openownership.org.test:5000 (or http://0.0.0.0.test:5000)

Static assets

  1. cd app/asset/
  2. npm install
  3. npm run build

By default, the admin JS and CSS will be output to assets/dist/

Continuous Integration

Pushes to the staging branch are automatically deployed, including static assets, to the staging server.

Build docker cache image

docker buildx bake -f docker-compose.test.yml web --set web.platform=linux/amd64,linux/arm64 --push