From ac53e4ed27b16bc103b2f282ac9970c53430b91a Mon Sep 17 00:00:00 2001 From: CancerAi Date: Sun, 11 Oct 2026 23:08:21 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E8=A7=84=E8=8C=83=E6=9E=84=E5=BB=BAscri?= =?UTF-8?q?pt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 2 +- package.json | 42 +++++++++++++++++++++--------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/deploy.sh b/deploy.sh index e272a48..366e177 100644 --- a/deploy.sh +++ b/deploy.sh @@ -5,6 +5,6 @@ app_ver="v1.02" bun run build-linux-x86 scp -P $server_port Dockerfile ${server_user}@${server_host}:${server_user_path} -scp -P $server_port build/test-api-linux-x86 ${server_user}@${server_host}:${server_user_path}/app +scp -P $server_port build/linux_x86_app ${server_user}@${server_host}:${server_user_path}/app ssh -p $server_port root@${server_host} "cd ${server_user_path} && docker build -t test-api:${app_ver} . && docker compose down && docker compose up -d" ssh -p $server_port ${server_user}@${server_host} "cd ${server_user_path}/ && rm -rf Dockerfile app" diff --git a/package.json b/package.json index 62657ec..3fcdb2f 100644 --- a/package.json +++ b/package.json @@ -1,22 +1,22 @@ { - "name": "test-api", - "module": "index.ts", - "type": "module", - "private": true, - "scripts": { - "dev": "bun run --hot src/index.ts", - "clean": "rm -rf ./build && rm -rf ./.*.bun-build", - "build-macos": "mkdir -p build && bun build src/index.ts --compile --minify --outfile build/test-api-macos", - "build-linux-x86": "bun build src/index.ts --compile --minify --target=bun-linux-x64 --outfile build/test-api-linux-x86", - "build-linux-arm64": "bun build src/index.ts --compile --minify --target=bun-linux-arm64 --outfile build/test-api-linux-arm64" - }, - "devDependencies": { - "@types/bun": "latest" - }, - "peerDependencies": { - "typescript": "^7" - }, - "dependencies": { - "hono": "^4.13.8" - } -} \ No newline at end of file + "name": "test-api", + "module": "index.ts", + "type": "module", + "private": true, + "scripts": { + "dev": "bun run --hot src/index.ts", + "clean": "rm -rf ./build && rm -rf ./.*.bun-build", + "build-macos": "mkdir -p build && bun build src/index.ts --compile --minify --outfile build/macos_app", + "build-linux-x86": "bun build src/index.ts --compile --minify --target=bun-linux-x64 --outfile build/linux_x86_app", + "build-linux-arm64": "bun build src/index.ts --compile --minify --target=bun-linux-arm64 --outfile build/linux_arm64_app" + }, + "devDependencies": { + "@types/bun": "latest" + }, + "peerDependencies": { + "typescript": "^7" + }, + "dependencies": { + "hono": "^4.13.8" + } +}