Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
老鱼er
et
提交
e52abc98
E
et
项目概览
老鱼er
/
et
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
et
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e52abc98
编写于
10月 23, 2016
作者:
T
tanghai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rsync终于算是正常了,可以同步文件到linux服务器,以后可以在linux编译运行了
上级
f19b5751
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
26 addition
and
11 deletion
+26
-11
Server/App/Start.txt
Server/App/Start.txt
+5
-5
Server/Model/Component/AppManagerComponent.cs
Server/Model/Component/AppManagerComponent.cs
+10
-3
Tools/cwRsync/Rsync.txt
Tools/cwRsync/Rsync.txt
+1
-1
Tools/cwRsync/exclude.txt
Tools/cwRsync/exclude.txt
+10
-1
Unity/Assets/Editor/ServerCommandLineEditor/ServerCommandLineEditor.cs
...Editor/ServerCommandLineEditor/ServerCommandLineEditor.cs
+0
-1
未找到文件。
Server/App/Start.txt
浏览文件 @
e52abc98
{ "_t" : "StartConfig", "Options" : { "_id" : 1, "AppType" : "Manager" }, "IP" : "
192.168.12.112
", "Config" : { "_id" : NumberLong("9223372036854775804"), "Type" : "StartConfig", "components" : [{ "_t" : "InnerConfig", "_id" : NumberLong("9223372036854775803"), "Host" : "127.0.0.1", "Port" : 10000 }, { "_t" : "OuterConfig", "_id" : NumberLong("9223372036854775802"), "Host" : "127.0.0.1", "Port" : 10001 }] } }
{ "_t" : "StartConfig", "Options" : { "_id" : 2, "AppType" : "Realm" }, "IP" : "
192.168.12.112
", "Config" : { "_id" : NumberLong("9223372036854775804"), "Type" : "StartConfig", "components" : [{ "_t" : "InnerConfig", "_id" : NumberLong("9223372036854775803"), "Host" : "127.0.0.1", "Port" : 10002 }, { "_t" : "OuterConfig", "_id" : NumberLong("9223372036854775802"), "Host" : "127.0.0.1", "Port" : 10003 }] } }
{ "_t" : "StartConfig", "Options" : { "_id" : 3, "AppType" : "Gate" }, "IP" : "
192.168.12.112
", "Config" : { "_id" : NumberLong("9223372036854775804"), "Type" : "StartConfig", "components" : [{ "_t" : "InnerConfig", "_id" : NumberLong("9223372036854775803"), "Host" : "127.0.0.1", "Port" : 10004 }, { "_t" : "OuterConfig", "_id" : NumberLong("9223372036854775802"), "Host" : "127.0.0.1", "Port" : 10005 }] } }
{ "_t" : "StartConfig", "Options" : { "_id" : 4, "AppType" : "Gate" }, "IP" : "
192.168.12.112
", "Config" : { "_id" : NumberLong("9223372036854775804"), "Type" : "StartConfig", "components" : [{ "_t" : "InnerConfig", "_id" : NumberLong("9223372036854775803"), "Host" : "127.0.0.1", "Port" : 10006 }, { "_t" : "OuterConfig", "_id" : NumberLong("9223372036854775802"), "Host" : "127.0.0.1", "Port" : 10007 }] } }
{ "_t" : "StartConfig", "Options" : { "_id" : 5, "AppType" : "Gate" }, "IP" : "
192.168.12.112
", "Config" : { "_id" : NumberLong("9223372036854775804"), "Type" : "StartConfig", "components" : [{ "_t" : "InnerConfig", "_id" : NumberLong("9223372036854775803"), "Host" : "127.0.0.1", "Port" : 10008 }, { "_t" : "OuterConfig", "_id" : NumberLong("9223372036854775802"), "Host" : "127.0.0.1", "Port" : 10009 }] } }
{ "_t" : "StartConfig", "Options" : { "_id" : 1, "AppType" : "Manager" }, "IP" : "
*
", "Config" : { "_id" : NumberLong("9223372036854775804"), "Type" : "StartConfig", "components" : [{ "_t" : "InnerConfig", "_id" : NumberLong("9223372036854775803"), "Host" : "127.0.0.1", "Port" : 10000 }, { "_t" : "OuterConfig", "_id" : NumberLong("9223372036854775802"), "Host" : "127.0.0.1", "Port" : 10001 }] } }
{ "_t" : "StartConfig", "Options" : { "_id" : 2, "AppType" : "Realm" }, "IP" : "
*
", "Config" : { "_id" : NumberLong("9223372036854775804"), "Type" : "StartConfig", "components" : [{ "_t" : "InnerConfig", "_id" : NumberLong("9223372036854775803"), "Host" : "127.0.0.1", "Port" : 10002 }, { "_t" : "OuterConfig", "_id" : NumberLong("9223372036854775802"), "Host" : "127.0.0.1", "Port" : 10003 }] } }
{ "_t" : "StartConfig", "Options" : { "_id" : 3, "AppType" : "Gate" }, "IP" : "
*
", "Config" : { "_id" : NumberLong("9223372036854775804"), "Type" : "StartConfig", "components" : [{ "_t" : "InnerConfig", "_id" : NumberLong("9223372036854775803"), "Host" : "127.0.0.1", "Port" : 10004 }, { "_t" : "OuterConfig", "_id" : NumberLong("9223372036854775802"), "Host" : "127.0.0.1", "Port" : 10005 }] } }
{ "_t" : "StartConfig", "Options" : { "_id" : 4, "AppType" : "Gate" }, "IP" : "
*
", "Config" : { "_id" : NumberLong("9223372036854775804"), "Type" : "StartConfig", "components" : [{ "_t" : "InnerConfig", "_id" : NumberLong("9223372036854775803"), "Host" : "127.0.0.1", "Port" : 10006 }, { "_t" : "OuterConfig", "_id" : NumberLong("9223372036854775802"), "Host" : "127.0.0.1", "Port" : 10007 }] } }
{ "_t" : "StartConfig", "Options" : { "_id" : 5, "AppType" : "Gate" }, "IP" : "
*
", "Config" : { "_id" : NumberLong("9223372036854775804"), "Type" : "StartConfig", "components" : [{ "_t" : "InnerConfig", "_id" : NumberLong("9223372036854775803"), "Host" : "127.0.0.1", "Port" : 10008 }, { "_t" : "OuterConfig", "_id" : NumberLong("9223372036854775802"), "Host" : "127.0.0.1", "Port" : 10009 }] } }
Server/Model/Component/AppManagerComponent.cs
浏览文件 @
e52abc98
...
...
@@ -25,7 +25,7 @@ namespace Model
StartConfig
[]
startConfigs
=
Game
.
Scene
.
GetComponent
<
StartConfigComponent
>().
GetAll
();
foreach
(
StartConfig
startConfig
in
startConfigs
)
{
if
(!
ips
.
Contains
(
startConfig
.
IP
))
if
(!
ips
.
Contains
(
startConfig
.
IP
)
&&
startConfig
.
IP
!=
"*"
)
{
continue
;
}
...
...
@@ -35,13 +35,20 @@ namespace Model
continue
;
}
string
arguments
=
$"--id=
{
startConfig
.
Options
.
Id
}
--appType=
{
startConfig
.
Options
.
AppType
}
"
;
ProcessStartInfo
info
=
new
ProcessStartInfo
(
@"App.exe"
,
arguments
)
#if __MonoCS__
const
string
exe
=
@"mono"
;
string
arguments
=
$"App.exe --id=
{
startConfig
.
Options
.
Id
}
--appType=
{
startConfig
.
Options
.
AppType
}
"
;
#else
const
string
exe
=
@"App.exe"
;
string
arguments
=
$"--id=
{
startConfig
.
Options
.
Id
}
--appType=
{
startConfig
.
Options
.
AppType
}
"
;
#endif
ProcessStartInfo
info
=
new
ProcessStartInfo
(
exe
,
arguments
)
{
UseShellExecute
=
true
,
WorkingDirectory
=
@"..\Server\Bin\Debug"
};
Process
process
=
Process
.
Start
(
info
);
this
.
processes
.
Add
(
process
.
Id
,
process
);
}
...
...
Tools/cwRsync/Rsync.txt
浏览文件 @
e52abc98
SET HOME=%HOMEDRIVE%%HOMEPATH%
rsync.exe -vzrtopg --progress --password-file=./rsync.secrets --exclude-from=exclude.txt ../.. tanghai@192.168.1.134::Source/Egametang
\ No newline at end of file
.\Tools\cwRsync\rsync.exe -vzrtopg --password-file=./Tools/cwRsync/rsync.secrets --exclude-from=./Tools/cwRsync/exclude.txt --delete ./ tanghai@192.168.1.134::Tanghai/Source/Egametang --chmod=ugo=rwX
\ No newline at end of file
Tools/cwRsync/exclude.txt
浏览文件 @
e52abc98
../../.git
\ No newline at end of file
.git/
Log/
Tools/
Server/Bin/
Server/packages/
Server/Temp/
Server/Server.sdf
Unity/Library/
Unity/Temp/
*/obj
\ No newline at end of file
Unity/Assets/Editor/ServerCommandLineEditor/ServerCommandLineEditor.cs
浏览文件 @
e52abc98
...
...
@@ -23,7 +23,6 @@ namespace MyEditor
[
MenuItem
(
"Tools/服务端命令行配置"
)]
private
static
void
ShowWindow
()
{
GetWindow
(
typeof
(
ServerCommandLineEditor
));
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录