Fix build

This commit is contained in:
John Luo 2016-03-31 11:01:58 -07:00
parent cfd6ec311e
commit a587270b61
2 changed files with 3 additions and 2 deletions

View File

@ -7,8 +7,10 @@ namespace MusicStore
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args) // We set the server before default args so that command line arguments can override it.
// This is used to allow deployers to choose the server for testing.
.UseKestrel() .UseKestrel()
.UseDefaultHostingConfiguration(args)
.UseIIS() .UseIIS()
.UseStartup("MusicStore") .UseStartup("MusicStore")
.Build(); .Build();

View File

@ -23,7 +23,6 @@
"Areas", "Areas",
"Views", "Views",
"wwwroot", "wwwroot",
"hosting.json",
"config.json" "config.json"
], ],
"dependencies": { "dependencies": {