wedding-site-backend/README.md

827 B

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