Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions validateEnvs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@ if [ "${NODE_ENV:-development}" = "production" ] && [ -z "$email_from" ] && [ -z
warn "Direct email/SMS delivery is not configured. This is fine when using external delivery mode via a SeamlessAuth server adapter."
fi

echo "Generating JWKS keys"
node ./dist/scripts/initKeys.js
echo "JWKS keys ready"

echo "Running migrations..."

if ! run_migrations; then
Expand All @@ -115,4 +111,7 @@ if ! run_migrations; then
fi

echo "Starting application"
exec npm run start
# exec node, not `npm run start`: npm is a second Node program loaded to run one
# command, and it stays between init and the server, so SIGTERM on task draining
# reaches npm rather than PID 1.
exec node dist/server.js
Loading