更新:接口
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
## 运行 web-server
|
||||
`cd web-server && node app`
|
||||
|
||||
cd 到 web-server下面
|
||||
`npm run stop && npm run tsc && npm run start`
|
||||
|
||||
## 扩容事项
|
||||
1.master.ts对应环境的主机host填写内网ip地址,新服务器host填写主机host地址
|
||||
2.config/database.ts填写对应环境下的配置
|
||||
@@ -24,4 +27,4 @@
|
||||
7.手输命令示例如下:
|
||||
`pm2 start ./dist/app.js --name="activity-server-2" -x -- env=dev id=activity-server-2 host=172.26.145.171 port=9061 serverType=activity`
|
||||
`pm2 start ./dist/app.js --name="connector-server-4" -x -- env=alpha id=connector-server-4 host=172.26.145.171 port=9062 clientHost=121.89.211.172 clientPort=3050 serverType=connector frontend=true`
|
||||
8.主机部分的server.ts内的server如果需要做rpc remote,host需要从127.0.0.1改为私网地址
|
||||
8.主机部分的server.ts内的server如果需要做rpc remote,host需要从127.0.0.1改为私网地址
|
||||
|
||||
Reference in New Issue
Block a user