From d98f9a01196287b6b4336f6c6f92e433a65c67c6 Mon Sep 17 00:00:00 2001 From: Julia Ilasova <1julka1il@gmail.com> Date: Mon, 27 May 2024 10:24:23 +0200 Subject: [PATCH] ports??? --- api/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/Program.cs b/api/Program.cs index e542076..e2bf5a1 100644 --- a/api/Program.cs +++ b/api/Program.cs @@ -111,9 +111,10 @@ public static async Task StartApi(string[] args) await db.SeedDevelopmentDataAsync(scope, app.Configuration["AzureBlob:DefaultPlantImageUrl"] ?? "https://example.com"); } + builder.WebHost.UseUrls("http://*:9999"); + var port = Environment.GetEnvironmentVariable("PORT") ?? "8181"; var wsServer = new WebSocketServer($"ws://0.0.0.0:{port}"); - builder.WebHost.UseUrls("http://*:9999"); wsServer.Start(socket => {