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 | ed85aa28b49789aa413a7e10637368c812411640 (patch) | |
tree | da11e395a3fd1340187fb785fc17e570171b942b /Timeline/Program.cs | |
parent | 57151c879376374425adb04fb68dad2cf7930df8 (diff) | |
parent | 29bd71cd93b03248254f341aff9252374abc74ec (diff) | |
download | timeline-ed85aa28b49789aa413a7e10637368c812411640.tar.gz timeline-ed85aa28b49789aa413a7e10637368c812411640.tar.bz2 timeline-ed85aa28b49789aa413a7e10637368c812411640.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>();
+ }
+}
|