2024-04-02 15:52:39 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# This script runs when the docker image starts
|
|
|
|
# It just forces all migrations to run and then starts lol
|
|
|
|
|
2024-07-10 09:16:54 -07:00
|
|
|
# Allow running of other scripts via environment variable (eg. profiler)
|
|
|
|
SCRIPT_TO_RUN="${SCRIPT_TO_RUN:-start}"
|
|
|
|
|
2024-04-02 15:52:39 -07:00
|
|
|
npx -w packages/server npx prisma migrate deploy
|
2024-07-10 09:16:54 -07:00
|
|
|
npm -w packages/server run $SCRIPT_TO_RUN
|