This commit is contained in:
47
Program.cs
47
Program.cs
@@ -12,55 +12,12 @@ namespace rockfishCore
|
|||||||
|
|
||||||
public static IWebHost BuildWebHost(string[] args) =>
|
public static IWebHost BuildWebHost(string[] args) =>
|
||||||
WebHost.CreateDefaultBuilder(args)
|
WebHost.CreateDefaultBuilder(args)
|
||||||
.UseUrls("http://*:5000")
|
.UseUrls("http://*:3001")
|
||||||
.CaptureStartupErrors(true)
|
.CaptureStartupErrors(true)
|
||||||
.UseSetting("detailedErrors", "true")
|
.UseSetting("detailedErrors", "true")
|
||||||
.UseKestrel()
|
.UseKestrel()
|
||||||
.UseContentRoot(System.IO.Directory.GetCurrentDirectory())
|
.UseContentRoot(System.IO.Directory.GetCurrentDirectory())
|
||||||
.UseIISIntegration()
|
|
||||||
.UseStartup<Startup>()
|
.UseStartup<Startup>()
|
||||||
.Build();
|
.Build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//OLD .netCORE 1.1 style
|
|
||||||
// using System;
|
|
||||||
// using System.Collections.Generic;
|
|
||||||
// using System.IO;
|
|
||||||
// using System.Linq;
|
|
||||||
// using System.Threading.Tasks;
|
|
||||||
// using Microsoft.AspNetCore.Builder;
|
|
||||||
|
|
||||||
// using Microsoft.AspNetCore;
|
|
||||||
// using Microsoft.AspNetCore.Hosting;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// namespace rockfishCore
|
|
||||||
// {
|
|
||||||
// public class Program
|
|
||||||
// {
|
|
||||||
// public static void Main(string[] args)
|
|
||||||
// {
|
|
||||||
// BuildWebHost(args).Run();
|
|
||||||
|
|
||||||
// public static IWebHost BuildWebHost(string[] args) =>
|
|
||||||
// WebHost.CreateDefaultBuilder(args)
|
|
||||||
// .UseStartup<Startup>()
|
|
||||||
// .Build();
|
|
||||||
|
|
||||||
// // var host = new WebHostBuilder()
|
|
||||||
// // .UseUrls("http://*:5000")
|
|
||||||
// // .CaptureStartupErrors(true)
|
|
||||||
// // .UseSetting("detailedErrors", "true")
|
|
||||||
// // .UseKestrel()
|
|
||||||
// // .UseContentRoot(Directory.GetCurrentDirectory())
|
|
||||||
// // .UseIISIntegration()
|
|
||||||
// // .UseStartup<Startup>()
|
|
||||||
// // .Build();
|
|
||||||
|
|
||||||
// // host.Run();
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|||||||
Reference in New Issue
Block a user