diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-08 16:54:03 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-08-08 16:54:03 +0800 |
commit | d018e1c318646c6d7fecc8d3824129e9f1d5cf6c (patch) | |
tree | da11e395a3fd1340187fb785fc17e570171b942b /Timeline/Program.cs | |
parent | dc1ab11cea249f4ca967f86b115147a63f7c93a5 (diff) | |
parent | e283a3e745bad05a55c572646d7b20fbaaeb522d (diff) | |
download | timeline-d018e1c318646c6d7fecc8d3824129e9f1d5cf6c.tar.gz timeline-d018e1c318646c6d7fecc8d3824129e9f1d5cf6c.tar.bz2 timeline-d018e1c318646c6d7fecc8d3824129e9f1d5cf6c.zip |
Merge branch 'master' into null-request-field
Diffstat (limited to 'Timeline/Program.cs')
-rw-r--r-- | Timeline/Program.cs | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/Timeline/Program.cs b/Timeline/Program.cs index 480f5e9e..f343de44 100644 --- a/Timeline/Program.cs +++ b/Timeline/Program.cs @@ -1,25 +1,25 @@ -using Microsoft.AspNetCore; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.FileProviders; - -namespace Timeline -{ - public class Program - { - public static void Main(string[] args) - { - CreateWebHostBuilder(args) - .ConfigureAppConfiguration((context, config) => - { - if (context.HostingEnvironment.IsProduction()) - config.AddJsonFile(new PhysicalFileProvider("/etc/webapp/timeline/"), "config.json", true, true); - }) - .Build().Run(); - } - - public static IWebHostBuilder CreateWebHostBuilder(string[] args) => - WebHost.CreateDefaultBuilder(args) - .UseStartup<Startup>(); - } -} +using Microsoft.AspNetCore;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.FileProviders;
+
+namespace Timeline
+{
+ public class Program
+ {
+ public static void Main(string[] args)
+ {
+ CreateWebHostBuilder(args)
+ .ConfigureAppConfiguration((context, config) =>
+ {
+ if (context.HostingEnvironment.IsProduction())
+ config.AddJsonFile(new PhysicalFileProvider("/etc/webapp/timeline/"), "config.json", true, true);
+ })
+ .Build().Run();
+ }
+
+ public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
+ WebHost.CreateDefaultBuilder(args)
+ .UseStartup<Startup>();
+ }
+}
|