diff --git a/tools/deploy/production-deploy.sh b/tools/deploy/production-deploy.sh index 49c2710..7fde0ef 100644 --- a/tools/deploy/production-deploy.sh +++ b/tools/deploy/production-deploy.sh @@ -30,6 +30,7 @@ npm --prefix api run prisma:generate npm --prefix api run prisma:migrate:deploy echo "[deploy] Building frontend, API and gateway" +rm -rf api/dist api/tsconfig.build.tsbuildinfo "$APP_DIR/dist/cmpp-gateway" npm run build npm --prefix api run build (cd gateway && GOPROXY="${GOPROXY:-https://goproxy.cn,direct}" /usr/local/bin/go build -o "$APP_DIR/dist/cmpp-gateway" ./cmd/gateway)