Start adding connection strings for VS launch profile
This commit is contained in:
		
							parent
							
								
									72c8167ec0
								
							
						
					
					
						commit
						f5218e8087
					
				| @ -1,4 +1,6 @@ | ||||
| { | ||||
|   "ConnectionString": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word", | ||||
|   "ConnectionStrings": { | ||||
|     "CatalogDB": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word;Encrypt=false" | ||||
|   }, | ||||
|   "PicBaseUrl": "http://localhost:5222/api/v1/catalog/items/[0]/pic/" | ||||
| } | ||||
| @ -49,6 +49,14 @@ | ||||
|   <ItemGroup> | ||||
|     <ProjectReference Include="..\..\Services.Common\Services.Common.csproj" /> | ||||
|   </ItemGroup> | ||||
| 
 | ||||
|   <ItemGroup> | ||||
|     <Content Update="appsettings.Development.json"> | ||||
|       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||||
|       <ExcludeFromSingleFile>true</ExcludeFromSingleFile> | ||||
|       <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | ||||
|     </Content> | ||||
|   </ItemGroup> | ||||
|   <ProjectExtensions> | ||||
|     <VisualStudio> | ||||
|       <UserProperties appsettings_1json__JsonSchema="" /> | ||||
|  | ||||
| @ -2,7 +2,7 @@ | ||||
| 
 | ||||
| public class SeedData | ||||
| { | ||||
|     public static async Task EnsureSeedData(IServiceScope scope, IConfiguration configuration, Microsoft.Extensions.Logging.ILogger logger) | ||||
|     public static async Task EnsureSeedData(IServiceScope scope, IConfiguration configuration, ILogger logger) | ||||
|     { | ||||
|         var retryPolicy = CreateRetryPolicy(configuration, logger); | ||||
|         var context = scope.ServiceProvider.GetRequiredService<ApplicationDbContext>(); | ||||
|  | ||||
| @ -0,0 +1,5 @@ | ||||
| { | ||||
|   "ConnectionStrings": { | ||||
|     "IdentityDB": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.IdentityDb;User Id=sa;Password=Pass@word;Encrypt=false" | ||||
|   } | ||||
| } | ||||
| @ -44,4 +44,13 @@ | ||||
|     </None> | ||||
|   </ItemGroup> | ||||
| 
 | ||||
| 
 | ||||
|   <ItemGroup> | ||||
|     <Content Update="appsettings.Development.json"> | ||||
|       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||||
|       <ExcludeFromSingleFile>true</ExcludeFromSingleFile> | ||||
|       <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | ||||
|     </Content> | ||||
|   </ItemGroup> | ||||
| 
 | ||||
| </Project> | ||||
| @ -0,0 +1,5 @@ | ||||
| { | ||||
|   "ConnectionStrings": { | ||||
|     "OrderingDB": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word;Encrypt=false" | ||||
|   } | ||||
| } | ||||
| @ -5,5 +5,8 @@ | ||||
|       "System": "Information", | ||||
|       "Microsoft": "Information" | ||||
|     } | ||||
|   }, | ||||
|   "ConnectionStrings": { | ||||
|     "OrderingDB": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word;Encrypt=false" | ||||
|   } | ||||
| } | ||||
|  | ||||
| @ -7,7 +7,7 @@ | ||||
|     <handlers> | ||||
|       <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /> | ||||
|     </handlers> | ||||
|     <aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"> | ||||
|     <aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" hostingModel="InProcess"> | ||||
|       <environmentVariables /> | ||||
|     </aspNetCore> | ||||
|   </system.webServer> | ||||
|  | ||||
| @ -21,7 +21,7 @@ | ||||
|       "environmentVariables": { | ||||
|         "ASPNETCORE_ENVIRONMENT": "Development" | ||||
|       }, | ||||
|       "applicationUrl": "https://localhost:5001;http://localhost:5000" | ||||
|       "applicationUrl": "http://localhost:5228" | ||||
|     }, | ||||
|     "Docker": { | ||||
|       "commandName": "Docker", | ||||
|  | ||||
| @ -4,5 +4,7 @@ | ||||
|       "Default": "Information" | ||||
|     } | ||||
|   }, | ||||
|   "IdentityUrl": "http://localhost:5223", | ||||
|   "CallBackUrl": "http://localhost:5228/", | ||||
|   "AllowedHosts": "*" | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user