Files
shd.build/deploy/container-entrypoint.sh
T
JB 548d19d9ea
Validate and deploy staging / validate (push) Successful in 27s
Validate and deploy staging / deploy (push) Successful in 52s
Add containerized staging deployment
2026-07-26 10:31:24 -04:00

19 lines
322 B
Bash

#!/bin/sh
set -eu
if [ "${1:-}" = "serve" ]; then
node scripts/db-migrate.mjs
exec node build
fi
if [ "${1:-}" = "scheduler" ]; then
while true; do
node scripts/system-notification-dispatch.mjs
node scripts/oversight-notification-dispatch.mjs
node scripts/notification-digest.mjs
sleep 60
done
fi
exec "$@"