chore: debug -> build-and-run-server, 修改 Docketfile 启动命令以自动构建前端
This commit is contained in:
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@@ -5,7 +5,7 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "deno task debug",
|
"command": "deno task build-and-run-server",
|
||||||
"name": "Run debug",
|
"name": "Run debug",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal",
|
"type": "node-terminal",
|
||||||
|
|||||||
@@ -17,4 +17,4 @@ RUN deno task build
|
|||||||
EXPOSE 3601
|
EXPOSE 3601
|
||||||
|
|
||||||
# 启动服务
|
# 启动服务
|
||||||
CMD ["deno", "task", "server"]
|
CMD ["deno", "task", "build-and-run-server"]
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"tasks": {
|
"tasks": {
|
||||||
"server": "deno run --allow-read --allow-write --allow-env --allow-net --allow-sys --allow-run=deno ./server/main.ts",
|
"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"
|
"build": "cd ./client && deno task build"
|
||||||
},
|
},
|
||||||
"imports": {
|
"imports": {
|
||||||
|
|||||||
Reference in New Issue
Block a user