changed environment names in csproj, moved https redirection to dev only
This commit is contained in:
parent
599cefb736
commit
a0090470e8
@ -31,7 +31,7 @@
|
||||
<None Update="appsettings.Development.json" Condition="Exists('appsettings.Development.json')">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="appsettings.Release.json" Condition="Exists('appsettings.Release.json')">
|
||||
<None Update="appsettings.Production.json" Condition="Exists('appsettings.Production.json')">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="appsettings.json">
|
||||
|
@ -41,7 +41,7 @@
|
||||
<None Update="appsettings.Development.json" Condition="Exists('appsettings.Development.json')">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="appsettings.Release.json" Condition="Exists('appsettings.Release.json')">
|
||||
<None Update="appsettings.Production.json" Condition="Exists('appsettings.Production.json')">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="appsettings.json">
|
||||
|
@ -113,6 +113,7 @@ namespace Selector.Web
|
||||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
app.UseHttpsRedirection();
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -121,7 +122,6 @@ namespace Selector.Web
|
||||
//app.UseHsts();
|
||||
}
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
app.UseStaticFiles();
|
||||
|
||||
app.UseRouting();
|
||||
|
Loading…
Reference in New Issue
Block a user