mirror of
https://github.com/spaytac/linkdingsync.git
synced 2026-01-21 16:54:45 +00:00
**fixed** debug setting was a part of the last commit. appsettings.json was expected. Fixed with preprocessor directives.
This commit is contained in:
parent
bfa2c37210
commit
9b3c2733a0
3
.gitignore
vendored
3
.gitignore
vendored
@ -5,4 +5,5 @@ riderModule.iml
|
||||
/_ReSharper.Caches/
|
||||
**/.env
|
||||
.env
|
||||
compose/
|
||||
compose/
|
||||
compose-test/
|
||||
@ -1 +0,0 @@
|
||||
Linkding.Sync
|
||||
@ -10,10 +10,12 @@ IHost host = Host.CreateDefaultBuilder(args)
|
||||
{
|
||||
builder
|
||||
.AddEnvironmentVariables()
|
||||
.AddCommandLine(args)
|
||||
#if DEBUG
|
||||
.AddJsonFile("appsettings.json")
|
||||
.AddJsonFile("appsettings.Development.json")
|
||||
.AddUserSecrets<Program>(true);
|
||||
#endif
|
||||
.AddUserSecrets<Program>(true)
|
||||
.AddCommandLine(args);
|
||||
})
|
||||
.Build();
|
||||
|
||||
|
||||
@ -26,6 +26,7 @@ public partial class WallabagService
|
||||
while (allQuery.QueryLinks.Next != null && !string.IsNullOrEmpty(allQuery.QueryLinks.Next.Href))
|
||||
{
|
||||
// url = allQuery.QueryLinks.Next.Href.Replace(_settings.Url, "");
|
||||
url = allQuery.QueryLinks.Next.Href;
|
||||
if (_client.BaseAddress.Scheme == "https")
|
||||
{
|
||||
url = allQuery.QueryLinks.Next.Href.Replace("http://", "https://");
|
||||
|
||||
@ -11,10 +11,12 @@ IHost host = Host.CreateDefaultBuilder(args)
|
||||
{
|
||||
builder
|
||||
.AddEnvironmentVariables()
|
||||
.AddCommandLine(args)
|
||||
#if DEBUG
|
||||
.AddJsonFile("appsettings.json")
|
||||
.AddJsonFile("appsettings.Development.json")
|
||||
.AddUserSecrets<Program>(true);
|
||||
#endif
|
||||
.AddUserSecrets<Program>(true)
|
||||
.AddCommandLine(args);
|
||||
})
|
||||
.Build();
|
||||
|
||||
|
||||
@ -18,4 +18,13 @@
|
||||
<ProjectReference Include="..\Services\Linkding.Client\Linkding.Client.csproj" />
|
||||
<ProjectReference Include="..\Services\Wallabag.Client\Wallabag.Client.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Update="appsettings.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Update="appsettings.Development.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user