docker.sh 339 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
yarn build
tar -czvf yoho-activity-platform.tar.gz *