diff options
author | crupest <crupest@outlook.com> | 2020-02-21 11:59:58 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-02-21 11:59:58 +0800 |
commit | 6cf3c7891fe8a810b20bb799db9f3fb97414c4de (patch) | |
tree | a143ff8698660608d188428957a1ad56d620cca6 /Timeline/Program.cs | |
parent | e6a153380c720e386137904498b78b5488868f13 (diff) | |
download | timeline-6cf3c7891fe8a810b20bb799db9f3fb97414c4de.tar.gz timeline-6cf3c7891fe8a810b20bb799db9f3fb97414c4de.tar.bz2 timeline-6cf3c7891fe8a810b20bb799db9f3fb97414c4de.zip |
Migrate to use sqlite.
Diffstat (limited to 'Timeline/Program.cs')
-rw-r--r-- | Timeline/Program.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Timeline/Program.cs b/Timeline/Program.cs index b44aafde..1a7a723a 100644 --- a/Timeline/Program.cs +++ b/Timeline/Program.cs @@ -1,7 +1,6 @@ using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.Hosting;
using System.Resources;
@@ -16,8 +15,7 @@ namespace Timeline CreateWebHostBuilder(args)
.ConfigureAppConfiguration((context, config) =>
{
- if (context.HostingEnvironment.IsProduction())
- config.AddJsonFile(new PhysicalFileProvider("/etc/webapp/timeline/"), "config.json", true, true);
+ config.AddEnvironmentVariables("TIMELINE_");
})
.Build().Run();
}
|