fix: 修改启动问题

This commit is contained in:
sudoooooo 2023-11-16 21:42:27 +08:00
parent 936b0f52f4
commit 4e0f5d57ef
2 changed files with 3 additions and 3 deletions

View File

@ -109,10 +109,10 @@ npm install
npm run local npm run local
``` ```
:cyclone:TIPS :cyclone:NOTE
服务运行依赖 [mongodb-memory-server](https://github.com/nodkz/mongodb-memory-server) 服务运行依赖 [mongodb-memory-server](https://github.com/nodkz/mongodb-memory-server)
> 1、数据保存在内存中重启服务会更新数据。<br />2、启动内存服务器新实例时如果找不到MongoDB二进制文件会自动下载因此首次运行可能需要一些时间。 > 1、数据保存在内存中重启服务会更新数据。<br />2、启动内存服务器新实例时如果找不到MongoDB二进制文件会自动下载因此首次可能需要一些时间。
### 方案二、(推荐) ### 方案二、(推荐)

View File

@ -4,7 +4,7 @@
"description": "survey server template", "description": "survey server template",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"copy": "cp -rf ./src/* ./build/", "copy": "mkdir -p ./build/ && cp -rf ./src/* ./build/",
"build": "tsc", "build": "tsc",
"launch:local": "npm run build && SERVER_ENV=local node ./build/index.js", "launch:local": "npm run build && SERVER_ENV=local node ./build/index.js",
"launch:dev": "npm run build && SERVER_ENV=dev node ./build/index.js", "launch:dev": "npm run build && SERVER_ENV=dev node ./build/index.js",