Use command line args when configuring the server
This commit is contained in:
parent
b67e87d19e
commit
3a7b01e747
|
@ -19,6 +19,7 @@ namespace AspNetCoreMvc
|
||||||
|
|
||||||
public static IWebHost BuildWebHost (string[] args) =>
|
public static IWebHost BuildWebHost (string[] args) =>
|
||||||
WebHost.CreateDefaultBuilder (args)
|
WebHost.CreateDefaultBuilder (args)
|
||||||
|
.UseConfiguration (new ConfigurationBuilder ().AddCommandLine (args).Build ())
|
||||||
.UseStartup<Startup> ()
|
.UseStartup<Startup> ()
|
||||||
.Build ();
|
.Build ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue