Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit f5218e8

Browse files
committed
Start adding connection strings for VS launch profile
1 parent 72c8167 commit f5218e8

File tree

10 files changed

+38
-4
lines changed

10 files changed

+38
-4
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2-
"ConnectionString": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word",
2+
"ConnectionStrings": {
3+
"CatalogDB": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word;Encrypt=false"
4+
},
35
"PicBaseUrl": "http://localhost:5222/api/v1/catalog/items/[0]/pic/"
46
}

src/Services/Identity/Identity.API/Identity.API.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@
4949
<ItemGroup>
5050
<ProjectReference Include="..\..\Services.Common\Services.Common.csproj" />
5151
</ItemGroup>
52+
53+
<ItemGroup>
54+
<Content Update="appsettings.Development.json">
55+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
56+
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
57+
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
58+
</Content>
59+
</ItemGroup>
5260
<ProjectExtensions>
5361
<VisualStudio>
5462
<UserProperties appsettings_1json__JsonSchema="" />

src/Services/Identity/Identity.API/SeedData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
public class SeedData
44
{
5-
public static async Task EnsureSeedData(IServiceScope scope, IConfiguration configuration, Microsoft.Extensions.Logging.ILogger logger)
5+
public static async Task EnsureSeedData(IServiceScope scope, IConfiguration configuration, ILogger logger)
66
{
77
var retryPolicy = CreateRetryPolicy(configuration, logger);
88
var context = scope.ServiceProvider.GetRequiredService<ApplicationDbContext>();
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"ConnectionStrings": {
3+
"IdentityDB": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.IdentityDb;User Id=sa;Password=Pass@word;Encrypt=false"
4+
}
5+
}

src/Services/Ordering/Ordering.API/Ordering.API.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,13 @@
4444
</None>
4545
</ItemGroup>
4646

47+
48+
<ItemGroup>
49+
<Content Update="appsettings.Development.json">
50+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
51+
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
52+
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
53+
</Content>
54+
</ItemGroup>
55+
4756
</Project>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"ConnectionStrings": {
3+
"OrderingDB": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word;Encrypt=false"
4+
}
5+
}

src/Services/Ordering/Ordering.BackgroundTasks/appsettings.Development.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
"System": "Information",
66
"Microsoft": "Information"
77
}
8+
},
9+
"ConnectionStrings": {
10+
"OrderingDB": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word;Encrypt=false"
811
}
912
}

src/Web/WebSPA/web.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<handlers>
88
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
99
</handlers>
10-
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false">
10+
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" hostingModel="InProcess">
1111
<environmentVariables />
1212
</aspNetCore>
1313
</system.webServer>

src/Web/WebhookClient/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"environmentVariables": {
2222
"ASPNETCORE_ENVIRONMENT": "Development"
2323
},
24-
"applicationUrl": "https://localhost:5001;http://localhost:5000"
24+
"applicationUrl": "http://localhost:5228"
2525
},
2626
"Docker": {
2727
"commandName": "Docker",

src/Web/WebhookClient/appsettings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
"Default": "Information"
55
}
66
},
7+
"IdentityUrl": "http://localhost:5223",
8+
"CallBackUrl": "http://localhost:5228/",
79
"AllowedHosts": "*"
810
}

0 commit comments

Comments
 (0)