Sen descrición

gemercheung e13a924b2e save hai 1 ano
src f0c3c88268 feat: save hai 1 ano
test 5a18f03643 update %!s(int64=2) %!d(string=hai) anos
.eslintrc.js f0c3c88268 feat: save hai 1 ano
.gitignore 5a18f03643 update %!s(int64=2) %!d(string=hai) anos
.prettierrc 5a18f03643 update %!s(int64=2) %!d(string=hai) anos
README.md e13a924b2e save hai 1 ano
deploy.md e13a924b2e save hai 1 ano
ecosystem.config.js 1ea03e5c62 update %!s(int64=2) %!d(string=hai) anos
nest-cli.json 9081113d66 update %!s(int64=2) %!d(string=hai) anos
package.json f0c3c88268 feat: save hai 1 ano
pnpm-lock.yaml f0c3c88268 feat: save hai 1 ano
tsconfig.build.json 5a18f03643 update %!s(int64=2) %!d(string=hai) anos
tsconfig.json 5a18f03643 update %!s(int64=2) %!d(string=hai) anos

README.md

Socket 部置步骤

nodejs 16+

安装pm2

npm install -g pm2

安装依赖

npm install 或 pnpm install

运行命令

npm run pm2:prod

正式配置文件 src/common/envs/production.env

SOCKET_NAME='socket-prod'
SOCKET_PORT=10009
SOCKET_PATH="/ws-sync"
SOCKET_USE_MSPACK=1
REDIS_HOST= 127.0.0.1
REDIS_PORT=6379
REDIS_PASSWORD=JK20220120JIK
REDIS_DB=1
REDIS_ADAPTER_DB=1
REDIS_PREFIX=chat
WATCH_USER=4dage
WATCH_PASSWORD=4dage168.
TEMP_ROOM_VALID=3600

更改后要重新跑过 npm run pm2:prod