Настроить порт через переменную окружения ASPNETCORE_URLS
This commit is contained in:
@@ -4,7 +4,6 @@ using LazyBear.MCP.Services.Kubernetes;
|
|||||||
using LazyBear.MCP.Services.Logging;
|
using LazyBear.MCP.Services.Logging;
|
||||||
using LazyBear.MCP.Services.ToolRegistry;
|
using LazyBear.MCP.Services.ToolRegistry;
|
||||||
using LazyBear.MCP.TUI;
|
using LazyBear.MCP.TUI;
|
||||||
using ModelContextProtocol.Server;
|
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
@@ -38,4 +37,5 @@ var app = builder.Build();
|
|||||||
|
|
||||||
app.MapMcp();
|
app.MapMcp();
|
||||||
|
|
||||||
app.Run("http://localhost:5000");
|
var urls = Environment.GetEnvironmentVariable("ASPNETCORE_URLS") ?? "http://localhost:5000";
|
||||||
|
app.Run(urls);
|
||||||
|
|||||||
@@ -7,7 +7,8 @@
|
|||||||
"launchBrowser": true,
|
"launchBrowser": true,
|
||||||
"applicationUrl": "http://localhost:5079",
|
"applicationUrl": "http://localhost:5079",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development",
|
||||||
|
"ASPNETCORE_URLS": "http://localhost:5152"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user