Add containerized staging deployment
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#!/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 "$@"
|
||||
Reference in New Issue
Block a user