Created
September 5, 2018 11:23
-
-
Save laugri/ba6d19f2948bd131129ec86aa1172db8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
usage() { | |
echo "OVERVIEW: Build apps according to BUILD_ENV value. Meant to be used for Heroku deployment" | |
exit | |
} | |
if [ "$1" = '-h' ] || [ "$1" = '--help' ]; then | |
usage | |
fi | |
( | |
PROJECT_ROOT="$(cd $(dirname $0)/..; pwd)" | |
cd $PROJECT_ROOT | |
if [ "$BUILD_ENV" = "web-client" ]; then | |
yarn workspace web-client build | |
elif [ "$BUILD_ENV" = "api" ]; then | |
yarn workspace api build | |
else | |
echo "Error: no build config for INATO_BUILD_ENV value '$INATO_BUILD_ENV'" | |
exit 1 | |
fi | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment