Browse Source

去除datacenter

songxiaohang 1 year ago
parent
commit
bb9f8b506e
1 changed files with 1 additions and 5 deletions
  1. 1 5
      deploy/test.sh

+ 1 - 5
deploy/test.sh

@@ -11,11 +11,7 @@ build () {
 
 
     echo "build for ${1}"
     echo "build for ${1}"
     rm -f ${1}
     rm -f ${1}
-    if [ "${1}" == "datacenter" ]; then
-        GOOS=linux GOARCH=amd64 go build -o ${1} app/cmd/api/${1}.go
-    else
-        GOOS=linux GOARCH=amd64 go build -o ${1} app/cmd/${1}/${1}.go
-    fi
+    GOOS=linux GOARCH=amd64 go build -o ${1} app/cmd/${1}/${1}.go
     # shellcheck disable=SC2181
     # shellcheck disable=SC2181
     if [ "$?" != "0" ]; then
     if [ "$?" != "0" ]; then
         exit $?
         exit $?