Delete port
This commit is contained in:
parent
7f80bedbf5
commit
43974704fc
2 changed files with 1 additions and 14 deletions
|
|
@ -1,6 +1,4 @@
|
|||
using ikvm.runtime;
|
||||
using Microsoft.AspNetCore;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
|
|
@ -10,16 +8,6 @@ namespace Bot_Discord_CSharp
|
|||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var host = new WebHostBuilder()
|
||||
.UseKestrel()
|
||||
.UseContentRoot(Directory.GetCurrentDirectory())
|
||||
.UseIISIntegration()
|
||||
.UseStartup<Startup>()
|
||||
.UseUrls("http://0.0.0.0:" + Environment.GetEnvironmentVariable("$PORT"))
|
||||
.Build();
|
||||
|
||||
host.Run();
|
||||
|
||||
Bot bot = new Bot();
|
||||
bot.RunAsync().GetAwaiter().GetResult();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue