mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 10:16:32 +02:00
8 lines
310 B
Bash
Executable file
8 lines
310 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
export NEXT_PUBLIC_APP_VERSION=v$(node -p "require('./package.json').version")
|
|
echo "Set NEXT_PUBLIC_APP_VERSION=$NEXT_PUBLIC_APP_VERSION"
|
|
yarn prisma generate
|
|
yarn build
|
|
# Deploy migration using direct database connection (no connection pool)
|
|
DATABASE_URL=$DIRECT_DATABASE_URL yarn db:deploy
|