rallly/scripts/vercel.sh
Luke Vella 3bf837595a 🐛 Remove version suffix in layout
The docker image already has the suffix since this comes from the git tag
2023-04-13 22:35:05 +01:00

7 lines
289 B
Bash
Executable file

#!/bin/sh
set -e
export NEXT_PUBLIC_APP_VERSION=$(node -p "require('./package.json').version")
echo "Set NEXT_PUBLIC_APP_VERSION=v$NEXT_PUBLIC_APP_VERSION"
yarn build
# Deploy migration using direct database connection (no connection pool)
DATABASE_URL=$DIRECT_DATABASE_URL yarn db:deploy