Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created April 16, 2019 02:10
Show Gist options
  • Save dcomartin/9d249539fe5df40fd885c5432b299cf3 to your computer and use it in GitHub Desktop.
Save dcomartin/9d249539fe5df40fd885c5432b299cf3 to your computer and use it in GitHub Desktop.
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
namespace AspNetCore.Aws.Demo
{
public class Program
{
public static void Main(string[] args)
{
CreateWebHostBuilder(args).Build().Run();
}
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.ConfigureAppConfiguration(config =>
{
config.AddJsonFile("appsettings.json");
config.AddEnvironmentVariables();
})
.UseStartup<Startup>();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment