songxiaohang 1 рік тому
батько
коміт
bb9f8b506e
1 змінених файлів з 1 додано та 5 видалено
  1. 1 5
      deploy/test.sh

+ 1 - 5
deploy/test.sh

@@ -11,11 +11,7 @@ build () {
 
     echo "build for ${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
     if [ "$?" != "0" ]; then
         exit $?