根据 chat 示例创建 game-server,支持分布式部署、域名访问、数据库连接和基础使用
This commit is contained in:
5
game-server/startGameServer.sh
Normal file
5
game-server/startGameServer.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#/bin/bash
|
||||
cnpm install -d #安装依赖库
|
||||
npm run build
|
||||
node generatePm2Config.js #使用pm2来做进程管理,生成进程配置文件
|
||||
pm2-runtime pomeloPm2Start.json #pm2 启动游戏服务器
|
||||
Reference in New Issue
Block a user