2c581894b3ccd20d45c440b2d4445d114f959aba
vic.imo.server
GIT项目库导航
- 应用链总入口 tac/_tac
- 第五维度 [tac/log](https://git.faronear.org/tac/f iv)
- 原型设计 tac/vic.imo.design
- 客户端 tac/vic.imo.h5
- 服务端 tac/vic.imo.server
- 项目官网 tac/vic.imo.home
- 第五维度 [tac/log](https://git.faronear.org/tac/f iv)
安装
参见 https://www.mongodb.com/,分别把 mongodb 和 vic.imo.server 安装到 /mongodb 和 /vic/vic.imo.server
配置
- 设置 ssl 证书
certbot certonly -d server.vic.yuanjin.net - mongodb 设置数据库账号
- mongodb 配置文件已集成到
vic.imo.server/mongod.conf中- bindIp: 127.0.0.1 (生产环境)
- bindIpAll: true (开发环境)
- 编写
/vic/vic.imo.server/configSec.js,设置HD钱包的根密钥等等- protocol: https (生产环境)
- protocol: http (开发环境)
- port: 6842 (不要用 80/443,因为这要留给certbot)
运行
-
启动 mongodb
sudo /mongodb/bin/mongod -f /vic/vic.imo.server/mongod.conf --logpath /data/log/mongo.log以上命令已经被集成到 package.json 中,也可通过 npm 调用:
sudo npm run mongod -
启动 vic.imo.server
cd /vic/vic.imo.server node index.js或者
sudo npm run daemon.pm2
部署
- 应用后台主机
server.vic.yuanjin.net,用户名tic - 数据库主机
m1.vic.yuanjin.net,用户名tic
Description
Languages
JavaScript
100%