aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Program.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-02-21 11:59:58 +0800
committercrupest <crupest@outlook.com>2020-02-21 11:59:58 +0800
commit6cf3c7891fe8a810b20bb799db9f3fb97414c4de (patch)
treea143ff8698660608d188428957a1ad56d620cca6 /Timeline/Program.cs
parente6a153380c720e386137904498b78b5488868f13 (diff)
downloadtimeline-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.cs4
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();
}