提交 e52abc98 编写于 作者: T tanghai

rsync终于算是正常了,可以同步文件到linux服务器,以后可以在linux编译运行了

上级 f19b5751
{ "_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 }] } }
......@@ -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);
}
......
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
../../.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
......@@ -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.
先完成此消息的编辑!
想要评论请 注册