Service model
Production runs through systemd service azora-app.service.
The service starts a Next.js server on 127.0.0.1:3000 and nginx proxies app.azora.id to it.
Deploy sequence
Use this sequence after source changes.
npm run check
sudo -n systemctl restart azora-app.service
systemctl is-active azora-app.service
cat .next/BUILD_IDSmoke test
At minimum, test the root redirect, dashboard, changed pages, and one auth page.
Use curl -L for the root route because / redirects to /app/dashboard.
curl -L -k -sS -o /dev/null -w '%{http_code}\n' https://app.azora.id/
curl -k -sS -o /dev/null -w '%{http_code}\n' https://app.azora.id/app/dashboard