Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinmoris committed Jan 29, 2018
2 parents 2104908 + 26169f6 commit d1edd92
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 16 deletions.
6 changes: 6 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Release Notes
=============

## 0.14.0

#### New features

- Added the ASP.NET Core default developer exception page when environment is development.

## 0.13.0

#### New features
Expand Down
11 changes: 7 additions & 4 deletions src/content/DotLiquid/src/AppNamePlaceholder/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,13 @@ let configureCors (builder : CorsPolicyBuilder) =
|> ignore

let configureApp (app : IApplicationBuilder) =
app.UseCors(configureCors)
.UseGiraffeErrorHandler(errorHandler)
.UseStaticFiles()
.UseGiraffe(webApp)
let env = app.ApplicationServices.GetService<IHostingEnvironment>()
(match env.IsDevelopment() with
| true -> app.UseDeveloperExceptionPage()
| false -> app.UseGiraffeErrorHandler errorHandler)
.UseCors(configureCors)
.UseStaticFiles()
.UseGiraffe(webApp)

let configureServices (services : IServiceCollection) =
services.AddCors() |> ignore
Expand Down
11 changes: 7 additions & 4 deletions src/content/Giraffe/src/AppNamePlaceholder/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,13 @@ let configureCors (builder : CorsPolicyBuilder) =
|> ignore

let configureApp (app : IApplicationBuilder) =
app.UseCors(configureCors)
.UseGiraffeErrorHandler(errorHandler)
.UseStaticFiles()
.UseGiraffe(webApp)
let env = app.ApplicationServices.GetService<IHostingEnvironment>()
(match env.IsDevelopment() with
| true -> app.UseDeveloperExceptionPage()
| false -> app.UseGiraffeErrorHandler errorHandler)
.UseCors(configureCors)
.UseStaticFiles()
.UseGiraffe(webApp)

let configureServices (services : IServiceCollection) =
services.AddCors() |> ignore
Expand Down
9 changes: 6 additions & 3 deletions src/content/None/src/AppNamePlaceholder/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ let configureCors (builder : CorsPolicyBuilder) =
|> ignore

let configureApp (app : IApplicationBuilder) =
app.UseCors(configureCors)
.UseGiraffeErrorHandler(errorHandler)
.UseGiraffe(webApp)
let env = app.ApplicationServices.GetService<IHostingEnvironment>()
(match env.IsDevelopment() with
| true -> app.UseDeveloperExceptionPage()
| false -> app.UseGiraffeErrorHandler errorHandler)
.UseCors(configureCors)
.UseGiraffe(webApp)

let configureServices (services : IServiceCollection) =
let sp = services.BuildServiceProvider()
Expand Down
11 changes: 7 additions & 4 deletions src/content/Razor/src/AppNamePlaceholder/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,13 @@ let configureCors (builder : CorsPolicyBuilder) =
|> ignore

let configureApp (app : IApplicationBuilder) =
app.UseCors(configureCors)
.UseGiraffeErrorHandler(errorHandler)
.UseStaticFiles()
.UseGiraffe(webApp)
let env = app.ApplicationServices.GetService<IHostingEnvironment>()
(match env.IsDevelopment() with
| true -> app.UseDeveloperExceptionPage()
| false -> app.UseGiraffeErrorHandler errorHandler)
.UseCors(configureCors)
.UseStaticFiles()
.UseGiraffe(webApp)

let configureServices (services : IServiceCollection) =
let sp = services.BuildServiceProvider()
Expand Down
2 changes: 1 addition & 1 deletion src/giraffe-template.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>giraffe-template</id>
<version>0.13.0</version>
<version>0.14.0</version>
<title>Giraffe Template for dotnet-new</title>
<summary>A dotnet-new template for Giraffe web applications.</summary>
<description>A dotnet-new template for Giraffe web applications.</description>
Expand Down

0 comments on commit d1edd92

Please sign in to comment.