rename vic.server to vic.server.mongo

This commit is contained in:
Luk Lu
2021-05-01 10:22:26 +08:00
parent 56bf0840a8
commit df50b9288d
2 changed files with 13 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
# vic.server: 个性价值.服务端
# vic.server.mongo: 个性价值.服务端
## 项目库导航
@@ -6,12 +6,12 @@
- 个性价值 [tac/vic](https://git.faronear.org/tac/vic)
- 官网 [tac/vic.webhome.hexo](https://git.faronear.org/tac/vic.webhome.hexo)
- 设计 [tac/vic.design](https://git.faronear.org/tac/vic.design)
- 前端 [tac/vic.client.react](https://git.faronear.org/tac/vic.client.react)
- **<font size=5>后台 [tac/vic.server](https://git.faronear.org/tac/vic.server)</font>**
- 前端 [tac/vic.user.react](https://git.faronear.org/tac/vic.user.react)
- **<font size=5>后台 [tac/vic.server.mongo](https://git.faronear.org/tac/vic.server.mongo)</font>**
## 安装
参见 <https://www.mongodb.com/>,分别把 mongodb 和 vic.server 安装到 /mongodb 和 /tac/vic.server
参见 <https://www.mongodb.com/>,分别把 mongodb 和 vic.server.mongo 安装到 /mongodb 和 /tac/vic.server.mongo
## 配置
@@ -20,10 +20,10 @@
certbot certonly -d server.vic.yuanjin.net
```
- mongodb 设置数据库账号
- mongodb 配置文件已集成到 `vic.server/mongod.conf` 中
- mongodb 配置文件已集成到 `vic.server.mongo/mongod.conf` 中
- bindIp: 127.0.0.1 (生产环境)
- bindIpAll: true (开发环境)
- 编写 `/tac/vic.server/configSec.js`,设置 HD 钱包的根密钥等等
- 编写 `/tac/vic.server.mongo/configSec.js`,设置 HD 钱包的根密钥等等
- protocol: https (生产环境)
- protocol: http (开发环境)
- port: 6842 (不要用 80/443因为这要留给 certbot)
@@ -33,7 +33,7 @@
1. 启动 mongodb
```
sudo /mongodb/bin/mongod -f /tac/vic.server/mongod.conf --logpath /data/log/mongo.log
sudo /mongodb/bin/mongod -f /tac/vic.server.mongo/mongod.conf --logpath /data/log/mongo.log
```
以上命令已经被集成到 package.json 中,也可通过 npm 调用:
@@ -42,9 +42,9 @@
sudo npm run mongod
```
2. 启动 vic.server
2. 启动 vic.server.mongo
```
cd /tac/vic.server
cd /tac/vic.server.mongo
node index.js
```
或者