fork 0k-charms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

8 lines
249 B

#!/bin/bash
set -e
prisma migrate deploy --schema=./prisma/schema.prisma
if [ -z "$NEXT_PUBLIC_BASE_URL" ]; then
IPS=($(hostname -I))
NEXT_PUBLIC_BASE_URL="http://${IPS[0]}:3000"
fi
NEXTAUTH_URL=$NEXT_PUBLIC_BASE_URL node apps/web/server.js