From 6c1dd703bc8e8ac64ee6f8ad236aca4bd5104b86 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Fri, 31 Oct 2025 21:34:12 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20debug=20->=20build-and-run-server,=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20Docketfile=20=E5=90=AF=E5=8A=A8=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E4=BB=A5=E8=87=AA=E5=8A=A8=E6=9E=84=E5=BB=BA=E5=89=8D?= =?UTF-8?q?=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 2 +- Dockerfile | 2 +- deno.jsonc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 08d7324..bcbb5a3 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,7 +5,7 @@ "version": "0.2.0", "configurations": [ { - "command": "deno task debug", + "command": "deno task build-and-run-server", "name": "Run debug", "request": "launch", "type": "node-terminal", diff --git a/Dockerfile b/Dockerfile index 6d2a0b6..f5d4758 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,4 +17,4 @@ RUN deno task build EXPOSE 3601 # 启动服务 -CMD ["deno", "task", "server"] \ No newline at end of file +CMD ["deno", "task", "build-and-run-server"] \ No newline at end of file diff --git a/deno.jsonc b/deno.jsonc index 7afe6ef..f5e5eb1 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,7 +1,7 @@ { "tasks": { "server": "deno run --allow-read --allow-write --allow-env --allow-net --allow-sys --allow-run=deno ./server/main.ts", - "debug": "deno task build && deno run --watch --allow-read --allow-write --allow-env --allow-net --allow-sys --allow-run=deno ./server/main.ts", + "build-and-run-server": "deno task build && deno run --watch --allow-read --allow-write --allow-env --allow-net --allow-sys --allow-run=deno ./server/main.ts", "build": "cd ./client && deno task build" }, "imports": {