Refactor Study Desk application structure
This commit is contained in:
parent
faaccf8a7e
commit
089439ed90
145 changed files with 8087 additions and 3412 deletions
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
npx prisma migrate deploy
|
||||
|
||||
DEFAULT_SECRET='dev-session-secret-change-in-production-must-be-32-chars'
|
||||
TRIMMED_SECRET=$(printf '%s' "${SESSION_SECRET:-}" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//')
|
||||
if [ -z "$TRIMMED_SECRET" ] || [ "${#TRIMMED_SECRET}" -lt 32 ] || [ "$TRIMMED_SECRET" = "$DEFAULT_SECRET" ]; then
|
||||
echo >&2 "SESSION_SECRET must be a non-default value of at least 32 characters"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
./node_modules/.bin/prisma migrate deploy
|
||||
exec node server.js
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue