Merge pull request #9309 from abpframework/volo/issues/6728

Update CMS Kit Introduction Blog Post & adjust skip-db-migrations usage
pull/9350/head
Halil İbrahim Kalkan 4 years ago committed by GitHub
commit 5f808d8f38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,13 +28,13 @@ If you're using the open-source version or adding the module to an existing proj
You can run the following command to add the module to an open-source solution.
```bash
abp add-module Volo.CmsKit
abp add-module Volo.CmsKit --skip-db-migrations true
```
If you're a commercial user, run the following command to install the pro version of the module.
```bash
abp add-module Volo.CmsKit.Pro
abp add-module Volo.CmsKit.Pro --skip-db-migrations true
```
After adding the module to the solution, you need to configure features. The CMS Kit module uses the [global feature](https://docs.abp.io/en/abp/latest/Global-Features) system for all features. To enable the features in the CMS Kit module, open the `GlobalFeatureConfigurator` class in the `Domain.Shared` project and place the following code to the `Configure` method to enable all features in the CMS kit module.

@ -42,7 +42,7 @@ namespace Volo.Abp.Cli.Commands
var newProTemplate = !string.IsNullOrEmpty(template) && template == ModuleProTemplate.TemplateName;
var withSourceCode = newTemplate || newProTemplate || commandLineArgs.Options.ContainsKey(Options.SourceCode.Long);
var addSourceCodeToSolutionFile = withSourceCode && commandLineArgs.Options.ContainsKey("add-to-solution-file");
var skipDbMigrations = newTemplate || newProTemplate || Convert.ToBoolean(commandLineArgs.Options.GetOrNull(Options.DbMigrations.Skip) ?? "false");
var skipDbMigrations = newTemplate || newProTemplate || commandLineArgs.Options.ContainsKey(Options.DbMigrations.Skip);
var solutionFile = GetSolutionFile(commandLineArgs);
var version = commandLineArgs.Options.GetOrNull(Options.Version.Short, Options.Version.Long);

Loading…
Cancel
Save