mirror of https://github.com/abpframework/abp.git
committed by
GitHub
5 changed files with 44 additions and 5 deletions
@ -0,0 +1,24 @@ |
|||
using Volo.Abp.Cli.ProjectBuilding.Building; |
|||
using Volo.Abp.Cli.ProjectBuilding.Files; |
|||
|
|||
namespace Volo.Abp.Cli.ProjectBuilding.Templates.App |
|||
{ |
|||
public class AppTemplateChangeDbMigratorPortSettingsStep : ProjectBuildPipelineStep |
|||
{ |
|||
public string IdentityServerPort { get; } |
|||
|
|||
/// <param name="identityServerPort"></param>
|
|||
public AppTemplateChangeDbMigratorPortSettingsStep( |
|||
string identityServerPort) |
|||
{ |
|||
IdentityServerPort = identityServerPort; |
|||
} |
|||
|
|||
public override void Execute(ProjectBuildContext context) |
|||
{ |
|||
context |
|||
.GetFile("/aspnet-core/src/MyCompanyName.MyProjectName.DbMigrator/appsettings.json") |
|||
.ReplaceText("44305", IdentityServerPort); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue