From 4e0f5d57efabe7abe346858d21c643f668546507 Mon Sep 17 00:00:00 2001 From: sudoooooo Date: Thu, 16 Nov 2023 21:42:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- server/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fb79d13d..4d10da49 100644 --- a/README.md +++ b/README.md @@ -109,10 +109,10 @@ npm install npm run local ``` -:cyclone:TIPS: +:cyclone:NOTE: 服务运行依赖 [mongodb-memory-server](https://github.com/nodkz/mongodb-memory-server): -> 1、数据保存在内存中,重启服务会更新数据。
2、在启动内存服务器的新实例时,如果找不到MongoDB二进制文件会自动下载,因此首次运行可能需要一些时间。 +> 1、数据保存在内存中,重启服务会更新数据。
2、启动内存服务器新实例时,如果找不到MongoDB二进制文件会自动下载,因此首次可能需要一些时间。 ### 方案二、(推荐) diff --git a/server/package.json b/server/package.json index 7406d788..cbe440ee 100644 --- a/server/package.json +++ b/server/package.json @@ -4,7 +4,7 @@ "description": "survey server template", "main": "index.js", "scripts": { - "copy": "cp -rf ./src/* ./build/", + "copy": "mkdir -p ./build/ && cp -rf ./src/* ./build/", "build": "tsc", "launch:local": "npm run build && SERVER_ENV=local node ./build/index.js", "launch:dev": "npm run build && SERVER_ENV=dev node ./build/index.js",