Skip to content

Commit

Permalink
修复配置失效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
MonoLogueChi committed Apr 15, 2020
1 parent 0c7d4ab commit 5fd5b75
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 9 deletions.
12 changes: 12 additions & 0 deletions MetingJS.Server/.config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-ef": {
"version": "3.1.3",
"commands": [
"dotnet-ef"
]
}
}
}
2 changes: 1 addition & 1 deletion MetingJS.Server/MetingJS.Server.csproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected>
<ActiveDebugProfile>MetingJS.Server</ActiveDebugProfile>
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
<ActiveDebugFramework>netcoreapp2.1</ActiveDebugFramework>
<ActiveDebugFramework>netcoreapp3.1</ActiveDebugFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
Expand Down
8 changes: 4 additions & 4 deletions MetingJS.Server/Models/AppSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ public AppSettings(IConfiguration configuration)
configuration.Bind(this);
}

public string[] WithOrigins { get; } = new string[0];
public ServerProvider DefaultServerProvider { get; } = ServerProvider.Tencent;
public string Url { get; } = "";
public Replace Replace { get; } = new Replace();
public string[] WithOrigins { get; set; }
public ServerProvider DefaultServerProvider { get; set; } = ServerProvider.Tencent;
public string Url { get; set; }
public Replace Replace { get; set; } = new Replace();
}

public class Replace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<PublishProvider>FileSystem</PublishProvider>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedBuildConfiguration>Linux</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<TargetFramework>netcoreapp3.1</TargetFramework>
<ProjectGuid>a1955290-e9a3-4572-b250-76c55f88b92d</ProjectGuid>
<SelfContained>false</SelfContained>
<publishUrl>bin\Release\netcoreapp3.1\publish\</publishUrl>
<publishUrl>bin\Linux\netcoreapp3.1\publish\</publishUrl>
<DeleteExistingFiles>True</DeleteExistingFiles>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<PublishReadyToRun>False</PublishReadyToRun>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TimeStampOfAssociatedLegacyPublishXmlFile />
<_PublishTargetUrl>D:\MonoLogueChi\Documents\GitHub\MetingJS.Server\MetingJS.Server\bin\Release\netcoreapp3.1\publish\</_PublishTargetUrl>
<_PublishTargetUrl>D:\MonoLogueChi\Documents\GitHub\MetingJS.Server\MetingJS.Server\bin\Linux\netcoreapp3.1\publish\</_PublishTargetUrl>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion MetingJS.Server/appsettings.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"*"
],
"Urls": "http://localhost:5000",
"Url": "",
"Url": "https://sm.sm9.top/api.php",
"Replace": {
"Url": [
[ "http://", "https://" ],
Expand Down

0 comments on commit 5fd5b75

Please sign in to comment.