|
@@ -10,10 +10,14 @@ usage() {
|
|
|
|
|
|
checkEnv(){
|
|
|
if [ -z "${APP_NAME}" ] || [ -z "${APP_DEBUG}" ]; then #判断pid是否为空
|
|
|
- if [[ $1 = 'prod' ]]; then
|
|
|
+ if [[ $1 = 'prod' ]]; then
|
|
|
echo "prod config"
|
|
|
APP_NAME=changeing-prod.jar
|
|
|
APP_DEBUG=5526
|
|
|
+ elif [[ $1 = 'onprod' ]] ; then
|
|
|
+ echo "onprod config"
|
|
|
+ APP_NAME=changeing-onprod.jar
|
|
|
+ APP_DEBUG=5526
|
|
|
elif [[ $1 = 'uat' ]] ; then
|
|
|
echo "uat config"
|
|
|
APP_NAME=changeing-uat.jar
|