chore: debug -> build-and-run-server, 修改 Docketfile 启动命令以自动构建前端

This commit is contained in:
CrescentLeaf
2025-10-31 21:34:12 +08:00
parent 046831b4e5
commit 6c1dd703bc
3 changed files with 3 additions and 3 deletions

2
.vscode/launch.json vendored
View File

@@ -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",

View File

@@ -17,4 +17,4 @@ RUN deno task build
EXPOSE 3601
# 启动服务
CMD ["deno", "task", "server"]
CMD ["deno", "task", "build-and-run-server"]

View File

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