mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 10:49:02 +00:00
23 lines
294 B
Bash
Executable File
23 lines
294 B
Bash
Executable File
#!/bin/sh
|
|
|
|
api_host=$API_HOST
|
|
|
|
if [[ "$HEROKU_APP_NAME" =~ "-pr-" ]]
|
|
then
|
|
api_host=""
|
|
fi
|
|
|
|
echo "building client..."
|
|
cd client
|
|
yarn install
|
|
yarn upgrade
|
|
yarn --production=false
|
|
yarn build
|
|
cd ../
|
|
|
|
echo "building server..."
|
|
cd server
|
|
yarn install
|
|
yarn upgrade
|
|
yarn --production=false
|
|
yarn build |