Files
Andy Dixon ada0b18b3f deploy: production deployment for noema.dixon.cx
The systemd unit, nginx vhost, build-and-restart script and operator notes
for running Noema as a Docker container behind nginx against the host
PostgreSQL cluster. Secrets stay in /etc/noema/noema.env, outside the repo.
2026-10-10 23:30:35 +01:00

10 lines
397 B
Bash
Executable File

#!/usr/bin/env bash
# Build the Noema image and restart the systemd service. Run from anywhere.
set -euo pipefail
cd "$(dirname "$0")/../.."
VERSION=$(git describe --tags --always --dirty 2>/dev/null || echo dev)
docker build -f deploy/Dockerfile --build-arg VERSION="$VERSION" -t noema:"$VERSION" -t noema:latest .
sudo systemctl restart noema
sleep 3
systemctl --no-pager --lines=5 status noema