docker.sh 361 Bytes
rm -rf yoho-activity-platform.tar.gz
if [[ $1 == "TEST1" ]] || [[ $1 == "TEST2" ]] || [[ $1 == "TEST3" ]]
then
    NODE_ENV='test'
elif [[ $1 == "GRAY-QCLOUD" ]]
then
    NODE_ENV='gray'
elif [[ $1 == "ONLINE-AWS" ]] || [[ $1 == "ONLINE-QCLOUD" ]]
then
    NODE_ENV='production'
fi
yarn
npm rebuild node-sass
yarn build
tar -czvf yoho-activity-platform.tar.gz *