Skip to content

Commit

Permalink
ports???
Browse files Browse the repository at this point in the history
  • Loading branch information
juuwel committed May 27, 2024
1 parent 2ac5131 commit d98f9a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ public static async Task<WebApplication> 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 =>
{
Expand Down

0 comments on commit d98f9a0

Please sign in to comment.