This is a Wagtail site.
You'll probably want to do sudo nano /etc/hosts
and add:
0.0.0.0 openownership.test
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.
git submodule update --init --recursive
goenv
gofab
(and then probablycd ..
)docker pull ghcr.io/hactar-is/openownership:latest
docker-compose up --build -d
fab docker.fish
to get a shell inside the running web container
You'll need all the project's environment variables in a .env file expanded into the shell session.
docker-compose up --build -d
docker exec -it openownership_web_1 fish
ordocker exec -it openownership_web_1 zsh
depending on your preference
manpy migrate
manpy createsuperuser
manpy populate_taxonomies
# To create tagsrunserver
Site should now be accessible at http://openownership.org.test:5000
(or http://0.0.0.0.test:5000)
cd app/asset/
npm install
npm run build
By default, the admin JS and CSS will be output to assets/dist/
Pushes to the staging
branch are automatically deployed, including static assets, to the staging server.
docker buildx bake -f docker-compose.test.yml web --set web.platform=linux/amd64,linux/arm64 --push