Some code for our wedding website
Find a file
2024-04-08 08:56:33 +01:00
infra Start adding deployment infra. 2024-02-18 14:09:12 +00:00
nginx Get site running on staging domain. 2024-02-18 17:20:38 +00:00
test Fix image loading. 2024-02-17 17:56:17 +00:00
wedding_site VIew view 2024-02-22 19:00:27 +00:00
.gitignore Fix up content 2024-02-18 21:27:08 +00:00
compose.prod.yaml Get site running on staging domain. 2024-02-18 17:20:38 +00:00
compose.staging.yaml Get site running on staging domain. 2024-02-18 17:20:38 +00:00
compose.yaml Start adding deployment infra. 2024-02-18 14:09:12 +00:00
generate_site.py Initial conversion script 2024-02-10 13:08:00 +00:00
LICENSE Initial commit 2024-02-10 10:34:12 +00:00
README.md Add some details on cert renewal. 2024-04-08 08:56:33 +01:00
requirements.txt Start adding deployment infra. 2024-02-18 14:09:12 +00:00

wedding-site-backend

Web backend for hosting a wedding website.

Run Local server:

source .venv/bin/activate
cd wedding_site
python manage.py runserver

Do Migrations

cd wedding_site
python manage.py makemigrations primary
python manage.py migrate

Run Dev Server in container

podman-compose -f compose.yaml up -d --build

Bring it down with:

podman-compose down -v

Run Prod Server

podman-compose -f compose.prod.yaml up -d --build

Sync static files:

podman-compose -f compose.prod.yaml exec web python manage.py collectstatic --no-input --clear

Check cert

podman-compose -f compose.prod.yaml exec acme-companion /app/cert_status

Force renew cert:

podman-compose -f compose.prod.yaml exec acme-companion /app/force_renew