Christine for NH repository contains the contents and blog for Christine Seibert's Campaign for the New Hampshire State House of Representatives.
On every change to the main branch, the markdown under
/docs
directory is built and deployed as a Cloudflare page to:
Local changes are applied immediately on save to http://localhost:8000/
You will need to have the following software installed on your system to run this project locally:
If you are on Windows, please do the following to install just
:
- Open a Powershell terminal and execute the following:
winget install --id Casey.Just --exact
If you are on Ubuntu Linux, please do the following to install just
:
- Open a bash terminal and execute the following:
wget -qO - 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' | gpg --dearmor | sudo tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null
echo "deb [arch=all,$(dpkg --print-architecture) signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" | sudo tee /etc/apt/sources.list.d/prebuilt-mpr.list
sudo apt update
sudo apt install just
For other OS's, follow Just Installation Commands
To build the Docker Image execute the following command:
just build
To deploy the Docker Container locally, execute the following command:
- Execute the following command:
just serve
- Open http://localhost:8000/ once you see
Serving on http://0.0.0.0:8000/
in the logs
To build and deploy the Docker Container locally execute the following command:
just
or
just build serve
The
just
command defaults to building and serving the project attached to the terminal (CTRL
+C
will automatically stop the container).
Open http://localhost:8000/ once you see Serving on http://0.0.0.0:8000/
in the docker logs.
To deploy the Docker Container detached from the terminal locally, execute the following command:
- Execute the following command:
just serve-detached
- Open http://localhost:8000/ once you see
Serving on http://0.0.0.0:8000/
in the logs
To build and deploy the Docker Container locally execute the following command:
just start
or
just build serve-detached
To stop the container when running in detached mode, execute the following command:
just stop
To stop the container and clean the container and image when running, execute the following command:
just clean
Follow the Contributing Guide for instructions on contributing to this project.