Browse Source

Modify templates and other connection strings.

pull/1564/head
maliming 7 years ago
parent
commit
cefe98ba7a
  1. 2
      docs/en/Samples/Microservice-Demo.md
  2. 2
      docs/zh-Hans/Samples/Microservice-Demo.md
  3. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/App/AppTemplateSwitchEntityFrameworkCoreToMongoDbStep.cs
  4. 2
      modules/blogging/app/Volo.BloggingTestApp/appsettings.json
  5. 2
      samples/MicroserviceDemo/docker-compose.override.yml
  6. 2
      samples/MicroserviceDemo/k8s/blogging-service-deployment.yaml
  7. 2
      samples/MicroserviceDemo/microservices/BloggingService.Host/appsettings.json

2
docs/en/Samples/Microservice-Demo.md

@ -902,7 +902,7 @@ It has a dedicated MongoDB database (MsDemo_Blogging) to store blog and posts. I
````json
"ConnectionStrings": {
"Default": "Server=localhost;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true",
"Blogging": "mongodb://localhost|MsDemo_Blogging"
"Blogging": "mongodb://localhost/MsDemo_Blogging"
}
````

2
docs/zh-Hans/Samples/Microservice-Demo.md

@ -903,7 +903,7 @@ Swagger UI已配置,是此服务的默认页面. 如果你导航到URL`http://lo
````json
"ConnectionStrings": {
"Default": "Server=localhost;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true",
"Blogging": "mongodb://localhost|MsDemo_Blogging"
"Blogging": "mongodb://localhost/MsDemo_Blogging"
}
````

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/App/AppTemplateSwitchEntityFrameworkCoreToMongoDbStep.cs

@ -184,7 +184,7 @@ namespace Volo.Abp.Cli.ProjectBuilding.Templates.App
{
if (lines[i].Contains("Default") && lines[i].Contains("Database"))
{
lines[i] = " \"Default\": \"mongodb://localhost:27017|MyProjectName\"";
lines[i] = " \"Default\": \"mongodb://localhost:27017/MyProjectName\"";
file.SetLines(lines);
return;
}

2
modules/blogging/app/Volo.BloggingTestApp/appsettings.json

@ -1,6 +1,6 @@
{
"ConnectionStrings": {
"SqlServer": "Server=localhost;Database=BloggingTestApp;Trusted_Connection=True;MultipleActiveResultSets=true",
"MongoDb": "mongodb://localhost:27017|BloggingTestApp"
"MongoDb": "mongodb://localhost:27017/BloggingTestApp"
}
}

2
samples/MicroserviceDemo/docker-compose.override.yml

@ -102,7 +102,7 @@ services:
- ASPNETCORE_URLS=http://0.0.0.0:80
- AuthServer__Authority=http://auth-server:51511
- ConnectionStrings__Default=Server=sqlserver;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false
- ConnectionStrings__Blogging=mongodb://mongodb|MsDemo_Blogging
- ConnectionStrings__Blogging=mongodb://mongodb/MsDemo_Blogging
- Redis__Configuration=redis
- RabbitMQ__Connections__Default__HostName=rabbitmq
- RemoteServices__Default__BaseUrl=http://internal-gateway/

2
samples/MicroserviceDemo/k8s/blogging-service-deployment.yaml

@ -23,7 +23,7 @@ spec:
- name: AuthServer__Authority
value: http://auth-server:51511
- name: ConnectionStrings__Blogging
value: mongodb://mongodb|MsDemo_Blogging
value: mongodb://mongodb/MsDemo_Blogging
- name: ConnectionStrings__Default
value: Server=sqlserver;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false
- name: RabbitMQ__Connections__Default__HostName

2
samples/MicroserviceDemo/microservices/BloggingService.Host/appsettings.json

@ -5,7 +5,7 @@
},
"ConnectionStrings": {
"Default": "Server=localhost;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true",
"Blogging": "mongodb://localhost|MsDemo_Blogging"
"Blogging": "mongodb://localhost/MsDemo_Blogging"
},
"RemoteServices": {
"Default": {

Loading…
Cancel
Save