mirror of
https://github.com/cole-maxwell1/todo-hetzner.git
synced 2026-10-27 19:02:49 -05:00
Implement the server-rendered Go todo application with PostgreSQL persistence, Tailwind styling, health checks, and test coverage. Provision production and staging infrastructure with OpenTofu, including private networking, static IPs, Object Storage backups, and load balancing. Configure Rocky Linux hosts with Ansible, rootless Podman, PostgreSQL, WAL-G backup automation, staging restores, and generated inventory.
13 lines
259 B
Django/Jinja
13 lines
259 B
Django/Jinja
#!/bin/bash
|
|
set -euo pipefail
|
|
{% if deployment_environment == 'staging' %}
|
|
if [[ "${1:-}" == "wal-push" ]]; then
|
|
echo "WAL uploads are disabled on staging" >&2
|
|
exit 1
|
|
fi
|
|
{% endif %}
|
|
set -a
|
|
source /etc/wal-g/wal-g.env
|
|
set +a
|
|
exec /usr/local/bin/wal-g "$@"
|