- Notifications
You must be signed in to change notification settings - Fork4
Staleness7/all
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
本项目乃阉割版, 部分游戏玩法未公开,详情请看.gitignore
- 杜绝伸手党(有开发能力可发出 issues 申请成为开发者,需缴纳低额保证金,直到有一定代码贡献的时候退还保证金,代码贡献不包括 游戏玩法,更多的是对游戏的完善)
- 避免法律风险
版本信息:
android sdk: 30ndk: 21cocos: 2.4.8node: 8.15.1pomelo@2.2.7
docker-compose up
mongo --port 27017 -u"mongoUser" -p"mongoPass" --authenticationDatabase"admin"use gamedb.createCollection("admins")db.admins.insert({uid: 1, account:"admin", password:"Admin123456", nickname:"超级管理员",permission:-1, createTime: 0});ctrl + c
docker-compose restart
关于服务器IP,请仔细阅读 docker-compose.yaml / docker-compose-dev.yaml
// Server/config/servers.json{"development":{"connector": [ {"id":"connector-1","host":"127.0.0.1","port":11000,"clientHost":"example.com","clientPort":12000,"frontend":true,"args":" --inspect=5850"} ],... }}
- clientHost: 如果使用 CDN 需要设置端口为 80
// Server/config/redis.json{"redis": {"host":"172.18.188.14","port":6379,"password":"123456" }}
- password: docker-compose 上设置的密码
{"mongo": {"host":"172.18.188.13","port":27017,"database":"game","user":"game","password":"123456" }}
// WebServer/config/gameServer.json{"gameHttpAddress":"https://example.com"}
// WebServer/config/mongo.json{"mongo": {"host":"172.18.188.13","port":27017,"database":"game","user":"game","password":"123456" },"statsMongo": {"host":"172.18.188.13","port":27017,"database":"game" },"AutoIncrementStartAt":100000}
// WebServer/config/redis.json{"redis": {"host":"172.18.188.14","port":6379,"password":"123456" }}
// WebServer/public/hot-update/updateControl.json{"hotUpdate":true,"bigUpdateDownloadUrl":"https://example.com/game-download"}
// Client/assets/Script/Constant/Constant.jsletDEBUG=false;// 网页发布版本letWEB_PRODUCTION=false;letSERVER_IP="https://examle.com:13000";letSERVER_IP_WEB="https://example.com:14000";
- 推荐阅读:https://www.jianshu.com/p/e8f6b85c530d
- 资源服务器URL:https://example.com:14000/hot-update/
- 生成热更包后解压并复制到 WebServer/public/hot-update/ 目录内,避免冲突,可以先删除相同的文件/夹 后 再复制
先找到 文件 UnionMainDialog
看一下资源有没有绑定上去
由于我是部署在 Cloudflare 上的,所以 开发 和 正式 服务器用的是不同的域名,方便切换
# 生产环境server_13000: example.comserver_80: example.comweb_manage_14000: example.commongodb: example.com# 开发环境server_13000: debug.example.comserver_80: debug.example.comweb_manage_14000: debug.example.com debug.example.com/gm-tools admin:Admin123456# 更多文档请查看 development 和 development/server_status 下的 README.mddev_web_manage_18080: debug.example.com admin:Admin123456dedv_code_8080: debug.example.com admin:Admin123456
- 中文符号转英文
- 自动去除多余空格
- README 文档及时更新
- TODO 标签标注
- 书签记忆
- 【vscode】Bookmarks使用
- webstorm 只需要在代码左侧右键添加书签即可,也可左边栏 修改名称
- .vscode .idea 需要同步 方便分享做的笔记书签
About
部署 | Deploy | 棋牌游戏部署源码