-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from opiethehokie/stagetime
cleanup and improve staging time
- Loading branch information
Showing
4 changed files
with
5 additions
and
49 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,11 @@ | ||
using Microsoft.AspNet.Builder; | ||
using Microsoft.AspNet.Hosting; | ||
using Microsoft.Framework.DependencyInjection; | ||
using Microsoft.Framework.Logging; | ||
using Microsoft.Framework.Configuration; | ||
using Microsoft.Framework.Runtime; | ||
using Microsoft.AspNet.StaticFiles; | ||
|
||
public class Startup | ||
{ | ||
public IConfiguration Configuration { get; set; } | ||
|
||
public Startup(IHostingEnvironment env, IApplicationEnvironment appEnv) | ||
{ | ||
var configBuilder = new ConfigurationBuilder(appEnv.ApplicationBasePath) | ||
.AddJsonFile("config.json") | ||
.AddEnvironmentVariables(); | ||
Configuration = configBuilder.Build(); | ||
} | ||
|
||
public void ConfigureServices(IServiceCollection services) | ||
{ | ||
services.AddMvc(); | ||
} | ||
|
||
public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory) | ||
public void Configure(IApplicationBuilder app) | ||
{ | ||
loggerFactory.AddConsole(); | ||
|
||
app.UseErrorPage(); | ||
|
||
app.UseDefaultFiles(); | ||
app.UseStaticFiles(); | ||
|
||
app.UseMvcWithDefaultRoute(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.