darkwire.io/build.sh
2023-10-30 04:02:28 -05:00

19 lines
243 B
Bash
Executable File

#!/bin/bash
api_host=$API_HOST
if [[ "$HEROKU_APP_NAME" =~ "-pr-" ]]
then
api_host=""
fi
echo "building client..."
cd client
yarn --production=false
yarn build
cd ../
echo "building server..."
cd server
yarn --production=true
yarn build