change - 配置文件修改

master
Wen JY 10 months ago
parent 92fe9486ff
commit 9ab11e32d6

@ -30,7 +30,7 @@ namespace SlnMesnac.Serilog
//.WriteTo.File(Path.Combine(logPath, "Debug.log"), LogEventLevel.Debug, fileSizeLimitBytes: 5 * 1024) //.WriteTo.File(Path.Combine(logPath, "Debug.log"), LogEventLevel.Debug, fileSizeLimitBytes: 5 * 1024)
.CreateLogger(); .CreateLogger();
app.UseSerilogRequestLogging(); app.UseSerilogRequestLogging();
Log.Information($"系统初始化完成,日志存放路径:{logPath}");
return app; return app;
} }
} }

@ -21,7 +21,7 @@
"commandName": "Project", "commandName": "Project",
"launchBrowser": true, "launchBrowser": true,
//"launchUrl": "swagger", //"launchUrl": "swagger",
"applicationUrl": "http://localhost:5000", "applicationUrl": "http://localhost:5001",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }

@ -84,16 +84,16 @@ namespace SlnMesnac
services.AddServices(); services.AddServices();
//注册Quartz //注册Quartz
services.AddQuartzSetUp(); //services.AddQuartzSetUp();
//注册PLC //注册PLC
services.AddPlcSetup(); services.AddPlcSetup();
//注册MQTT //注册MQTT
services.AddMqttSetup(); //services.AddMqttSetup();
//注册TouchSocket //注册TouchSocket
services.AddTouchSocketSetup(); //services.AddTouchSocketSetup();
} }
/// <summary> /// <summary>

@ -8,7 +8,7 @@
}, },
"AllowedHosts": "*", "AllowedHosts": "*",
"AppConfig": { "AppConfig": {
"logPath": "E:\\桌面\\日常代码\\SlnMesnac\\SlnMesnac\\bin\\Debug\\net6.0", "logPath": "/Users/wenxiansheng/Desktop/日常代码/杜肯新材料程序设计/Durk.SlnMesnac/SlnMesnac/bin/Debug/net6.0",
"mesConnStr": "server=.;uid=sa;pwd=123456;database=JiangYinMENS", "mesConnStr": "server=.;uid=sa;pwd=123456;database=JiangYinMENS",
"mcsConnStr": "Data Source=175.27.215.92/helowin;User ID=aucma_scada;Password=aucma" "mcsConnStr": "Data Source=175.27.215.92/helowin;User ID=aucma_scada;Password=aucma"
} }

Loading…
Cancel
Save