replace 'vic.imo' to 'vic' to simplify
This commit is contained in:
22
README.md
22
README.md
@@ -1,16 +1,16 @@
|
|||||||
# vic.imo.server
|
# vic.server
|
||||||
|
|
||||||
## GIT项目库导航
|
## GIT项目库导航
|
||||||
* 应用链总入口 [tac/_tac](https://git.faronear.org/tac/_tac)
|
* 应用链总入口 [tac/_tac](https://git.faronear.org/tac/_tac)
|
||||||
* 第五维度 [tac/log](https://git.faronear.org/tac/f iv)
|
* 第五维度 [tac/log](https://git.faronear.org/tac/f iv)
|
||||||
* 原型设计 [tac/vic.imo.design](https://git.faronear.org/tac/vic.imo.design)
|
* 原型设计 [tac/vic.design](https://git.faronear.org/tac/vic.design)
|
||||||
* 客户端 [tac/vic.imo.h5](https://git.faronear.org/tac/vic.imo.h5)
|
* 客户端 [tac/vic.h5](https://git.faronear.org/tac/vic.h5)
|
||||||
* **<font size=5>服务端 [tac/vic.imo.server](https://git.faronear.org/tac/vic.imo.server)</font>**
|
* **<font size=5>服务端 [tac/vic.server](https://git.faronear.org/tac/vic.server)</font>**
|
||||||
* 项目官网 [tac/vic.imo.home](https://git.faronear.org/tac/vic.imo.home)
|
* 项目官网 [tac/vic.home](https://git.faronear.org/tac/vic.home)
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
参见 <https://www.mongodb.com/>,分别把 mongodb 和 vic.imo.server 安装到 /mongodb 和 /vic/vic.imo.server
|
参见 <https://www.mongodb.com/>,分别把 mongodb 和 vic.server 安装到 /mongodb 和 /vic/vic.server
|
||||||
|
|
||||||
## 配置
|
## 配置
|
||||||
|
|
||||||
@@ -19,10 +19,10 @@
|
|||||||
certbot certonly -d server.vic.yuanjin.net
|
certbot certonly -d server.vic.yuanjin.net
|
||||||
```
|
```
|
||||||
* mongodb 设置数据库账号
|
* mongodb 设置数据库账号
|
||||||
* mongodb 配置文件已集成到 `vic.imo.server/mongod.conf` 中
|
* mongodb 配置文件已集成到 `vic.server/mongod.conf` 中
|
||||||
* bindIp: 127.0.0.1 (生产环境)
|
* bindIp: 127.0.0.1 (生产环境)
|
||||||
* bindIpAll: true (开发环境)
|
* bindIpAll: true (开发环境)
|
||||||
* 编写 `/vic/vic.imo.server/configSec.js`,设置HD钱包的根密钥等等
|
* 编写 `/vic/vic.server/configSec.js`,设置HD钱包的根密钥等等
|
||||||
* protocol: https (生产环境)
|
* protocol: https (生产环境)
|
||||||
* protocol: http (开发环境)
|
* protocol: http (开发环境)
|
||||||
* port: 6842 (不要用 80/443,因为这要留给certbot)
|
* port: 6842 (不要用 80/443,因为这要留给certbot)
|
||||||
@@ -31,16 +31,16 @@
|
|||||||
|
|
||||||
1. 启动 mongodb
|
1. 启动 mongodb
|
||||||
```
|
```
|
||||||
sudo /mongodb/bin/mongod -f /vic/vic.imo.server/mongod.conf --logpath /data/log/mongo.log
|
sudo /mongodb/bin/mongod -f /vic/vic.server/mongod.conf --logpath /data/log/mongo.log
|
||||||
```
|
```
|
||||||
以上命令已经被集成到 package.json 中,也可通过 npm 调用:
|
以上命令已经被集成到 package.json 中,也可通过 npm 调用:
|
||||||
```
|
```
|
||||||
sudo npm run mongod
|
sudo npm run mongod
|
||||||
```
|
```
|
||||||
|
|
||||||
2. 启动 vic.imo.server
|
2. 启动 vic.server
|
||||||
```
|
```
|
||||||
cd /vic/vic.imo.server
|
cd /vic/vic.server
|
||||||
node index.js
|
node index.js
|
||||||
```
|
```
|
||||||
或者
|
或者
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "vic.imo.server",
|
"name": "vic.server",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"dev": "node --inspect-brk ./",
|
"dev": "node --inspect-brk ./",
|
||||||
"mongod": "/mongodb/bin/mongod -f /mongodb/mongodb.conf --logpath /data/log/mongo.log",
|
"mongod": "/mongodb/bin/mongod -f /mongodb/mongodb.conf --logpath /data/log/mongo.log",
|
||||||
"daemon.pm2": "cross-env NODE_ENV=production pm2 start index.js --name vic.imo.server"
|
"daemon.pm2": "cross-env NODE_ENV=production pm2 start index.js --name vic.server"
|
||||||
},
|
},
|
||||||
"author": "Nova.xu",
|
"author": "Nova.xu",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
|
|||||||
Reference in New Issue
Block a user