Настроить порт через переменную окружения 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.ToolRegistry;
|
||||
using LazyBear.MCP.TUI;
|
||||
using ModelContextProtocol.Server;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
@@ -38,4 +37,5 @@ var app = builder.Build();
|
||||
|
||||
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,
|
||||
"applicationUrl": "http://localhost:5079",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
"ASPNETCORE_ENVIRONMENT": "Development",
|
||||
"ASPNETCORE_URLS": "http://localhost:5152"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user