|
In the documentation, it mentions we can pre-configure tenants using appsettings. eg. What is the difference between that and using auto setup? |
Replies: 3 comments 3 replies
|
|
|
Auto Setup runs the full setup, and saves the tenant's |
Tenant pre-configurationPer the docs, a tenant can be pre-configured from the host {
"OrchardCore": {
"MyTenant": {
"State": "Uninitialized",
"RequestUrlPrefix": "mytenant",
"ConnectionString": "...",
"DatabaseProvider": "SqlConnection",
"RecipeName": "Blog"
}
}
}
What each key hides on the setup screenFrom
Always rendered and required (not presettable here — use Precedence
NOTE: For example, if you define the |
Tenant pre-configuration
Per the docs, a tenant can be pre-configured from the host
appsettings.json:{ "OrchardCore": { "MyTenant": { "State": "Uninitialized", "RequestUrlPrefix": "mytenant", "ConnectionString": "...", "DatabaseProvider": "SqlConnection", "RecipeName": "Blog" } } }State: "Uninitialized"is what makes the tenant appear at all —ShellSettingsManageronly picks up sections underOrchardCorethat parse as a validTenantState.What each key hides on the setup screen
From
SetupController.CopyShellSettingsValues/HasPresetDatabaseConfigurationandViews/Setup/Index.cshtml:RecipeName