Skip to content

Commit

Permalink
Merge pull request #4 from opiethehokie/stagetime
Browse files Browse the repository at this point in the history
cleanup and improve staging time
  • Loading branch information
jgawor committed Aug 18, 2015
2 parents 265ffb4 + 8bd4d1f commit 9f66623
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 49 deletions.
13 changes: 0 additions & 13 deletions src/dotnetstarter/Controllers/HomeController.cs

This file was deleted.

30 changes: 3 additions & 27 deletions src/dotnetstarter/Startup.cs
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();
}
}
11 changes: 2 additions & 9 deletions src/dotnetstarter/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@

"dependencies": {
"Kestrel": "1.0.0-beta6",
"Microsoft.AspNet.Diagnostics": "1.0.0-beta6",
"Microsoft.AspNet.Mvc": "6.0.0-beta6",
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta6",
"Microsoft.AspNet.StaticFiles": "1.0.0-beta6",
"Microsoft.Framework.Configuration.EnvironmentVariables": "1.0.0-beta6",
"Microsoft.Framework.Configuration.Json": "1.0.0-beta6",
"Microsoft.Framework.Logging.Console": "1.0.0-beta6"
"Microsoft.AspNet.StaticFiles": "1.0.0-beta6"
},

"commands": {
"kestrel": "Microsoft.AspNet.Hosting --server Kestrel --server.urls http://localhost:5004",
"web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:5001"
"kestrel": "Microsoft.AspNet.Hosting --server Kestrel --server.urls http://localhost:5004"
},

"frameworks": {
Expand Down
File renamed without changes.

0 comments on commit 9f66623

Please sign in to comment.