Files
shd.build/deploy/container-entrypoint.sh
T
JB f5eb2fd663
Validate and deploy staging / validate (push) Successful in 18s
Validate and deploy staging / deploy (push) Successful in 44s
Run scheduled tasks through application database
2026-07-26 10:38:07 -04:00

14 lines
191 B
Bash

#!/bin/sh
set -eu
if [ "${1:-}" = "serve" ]; then
node scripts/db-migrate.mjs
exec node build
fi
if [ "${1:-}" = "scheduler" ]; then
exec node scripts/scheduler-client.mjs
fi
exec "$@"