Change config order.
This commit is contained in:
parent
982cf2a1d6
commit
9a4678d40f
|
|
@ -22,11 +22,11 @@ namespace Microsoft.AspNet.Hosting
|
||||||
{
|
{
|
||||||
var config = new Configuration();
|
var config = new Configuration();
|
||||||
config.AddCommandLine(args);
|
config.AddCommandLine(args);
|
||||||
config.AddEnvironmentVariables();
|
|
||||||
if (File.Exists(HostingIniFile))
|
if (File.Exists(HostingIniFile))
|
||||||
{
|
{
|
||||||
config.AddIniFile(HostingIniFile);
|
config.AddIniFile(HostingIniFile);
|
||||||
}
|
}
|
||||||
|
config.AddEnvironmentVariables();
|
||||||
|
|
||||||
var serviceCollection = new ServiceCollection();
|
var serviceCollection = new ServiceCollection();
|
||||||
serviceCollection.Add(HostingServices.GetDefaultServices(config));
|
serviceCollection.Add(HostingServices.GetDefaultServices(config));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue