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": {