entrypoint.sh
458 bytes
| 1 | #!/bin/sh |
|---|---|
| 2 | # Apply the schema (idempotent, additive) then launch the standalone server. |
| 3 | # `db push` avoids needing checked-in migration files for a single-app deploy; |
| 4 | # swap for `prisma migrate deploy` if you adopt migrations. |
| 5 | set -e |
| 6 | |
| 7 | echo "→ Applying database schema…" |
| 8 | node /prisma-cli/node_modules/prisma/build/index.js db push --skip-generate --schema ./prisma/schema.prisma |
| 9 | |
| 10 | echo "→ Starting Roundtable on port ${PORT:-3000}…" |
| 11 | exec node server.js |
| 12 | |