nenet node server

DevYK 1aa15a05db try decryptPrivityKey error hace 3 años
bin 6c7023d2a0 denet server init hace 3 años
config 2b1644f5ed fix 归集队列 bug hace 3 años
model 1aa15a05db try decryptPrivityKey error hace 3 años
public 6c7023d2a0 denet server init hace 3 años
routes 808d64b5ac update healthcheck hace 3 años
test 2b1644f5ed fix 归集队列 bug hace 3 años
views 6c7023d2a0 denet server init hace 3 años
.env.example acda782535 读取 env 解密私钥 hace 3 años
.gitignore 02da05feb6 add log hace 3 años
README.md 808d64b5ac update healthcheck hace 3 años
app.js 02da05feb6 add log hace 3 años
package-lock.json 48ee3b6edb bug fix hace 3 años
package.json 48ee3b6edb bug fix hace 3 años

README.md

安装必要的库

npm install

配置环境变量

vim ~/.bashrc
export DENET_CRYPT_KEY=
export DENET_CRYPT_IV=
source ~/.bashrc

启动

<!-- 开发环境启动 -->
NODE_ENV=dev ./node_modules/.bin/nodemon bin/www
<!-- 测试环境启动-->
NODE_ENV=test pm2 start bin/www
<!-- 线上环境启动 -->
NODE_ENV=prd pm2 start bin/www

健康检查

http://localhost:3000/healthcheck

进入 server 看 log


ssh -i de-net.pem ubuntu@34.207.131.244

sudo   su root

ssh    10.0.1.168

docker ps

docker ps  -a

docker exec  -it   容器id   bash

pm2 logs

文档