ad3eed3552
* Add build and publish srcipts for services * Add script for buildint frontend * Fix publish-backend.sh * Modify publish script for building * Cosmetic modify publish backend script
37 lines
729 B
Bash
37 lines
729 B
Bash
#!/bin/bash
|
|
|
|
SRC_PATH="/AppServer"
|
|
|
|
while [ "$1" != "" ]; do
|
|
case $1 in
|
|
|
|
-sp | --srcpath )
|
|
if [ "$2" != "" ]; then
|
|
SRC_PATH=$2
|
|
shift
|
|
fi
|
|
;;
|
|
|
|
-? | -h | --help )
|
|
echo " Usage: bash build-backend.sh [PARAMETER] [[PARAMETER], ...]"
|
|
echo " Parameters:"
|
|
echo " -sp, --srcpath path to AppServer root directory"
|
|
echo " -?, -h, --help this help"
|
|
echo " Examples"
|
|
echo " bash build-backend.sh -sp /app/AppServer"
|
|
exit 0
|
|
;;
|
|
|
|
* )
|
|
echo "Unknown parameter $1" 1>&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
echo "== FRONT-END-BUILD =="
|
|
|
|
cd ${SRC_PATH}
|
|
yarn install
|