From 51839cfa0521dfb8d6ce828f1b13b8b32f09bb45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20G=C3=B3mez=20Cuenca?= Date: Tue, 8 Dec 2020 13:04:24 +0100 Subject: [PATCH] Changed library of ports --- Bot_Discord_CSharp/Bot_Discord_CSharp.csproj | 2 +- Bot_Discord_CSharp/Program.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Bot_Discord_CSharp/Bot_Discord_CSharp.csproj b/Bot_Discord_CSharp/Bot_Discord_CSharp.csproj index 577d7d6..0f5ca3f 100644 --- a/Bot_Discord_CSharp/Bot_Discord_CSharp.csproj +++ b/Bot_Discord_CSharp/Bot_Discord_CSharp.csproj @@ -6,11 +6,11 @@ - + diff --git a/Bot_Discord_CSharp/Program.cs b/Bot_Discord_CSharp/Program.cs index 530778f..a070efa 100644 --- a/Bot_Discord_CSharp/Program.cs +++ b/Bot_Discord_CSharp/Program.cs @@ -1,4 +1,5 @@ using Cqrs.Hosts; +using ikvm.runtime; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using System; @@ -11,7 +12,7 @@ namespace Bot_Discord_CSharp { var host = CreateWebHostBuilder(args). UseKestrel(). - UseUrls("http://0.0.0.0:" + Environment.GetEnvironmentVariable("PORT")). + UseUrls("http://0.0.0.0:" + Environment.GetEnvironmentVariable("$PORT")). Build(); host.Run(); @@ -21,6 +22,6 @@ namespace Bot_Discord_CSharp } public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) - .UseStartup(); + .UseStartup(); } }