feat 电子餐券
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
using Gateway;
|
||||
|
||||
public class Program
|
||||
@@ -8,13 +7,14 @@ public class Program
|
||||
Host.CreateDefaultBuilder(args)
|
||||
.ConfigureAppConfiguration((context, builder) =>
|
||||
{
|
||||
builder.AddJsonFile("ocelot.json", true, true);
|
||||
if (context.HostingEnvironment.IsProduction())
|
||||
{
|
||||
builder.AddJsonFile("ocelot.json", true, true);
|
||||
}
|
||||
|
||||
builder.AddJsonFile($"ocelot.{context.HostingEnvironment.EnvironmentName}.json", true, true);
|
||||
})
|
||||
.ConfigureWebHostDefaults(webBuilder =>
|
||||
{
|
||||
webBuilder.UseStartup<Startup>();
|
||||
})
|
||||
.ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); })
|
||||
.Build().Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user