docker.sh 399 Bytes
#!/bin/bash
wordir=$2
cd $wordir
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
NODE_ENV=development yarn
yarn build
tar -czvf yoho-activity-platform.tar.gz *