Open Closed

Single Tenant App with Editions an dFeatures #369


User avatar
0
buaziz created

I am planning to deploy an on-premises app to multiple clients. can I setup a single tenant application with editions and features for each client on-premises? and without having them (edition,featuers) setup on the DB as the client will have access to the DB and may change the assigned edition and features

what is the best way to implement this scenario using abp commercial ?


4 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    HI,

    Do you mean you want to pre-assign tenants to clients?

  • User Avatar
    0
    buaziz created

    the app is a single tenant deployed on my client on-premises datacenter.

    but I want to use the app in multiple clients (my customers) and each client will have different editions/features enabled of the same app.

    I want to make sure that the client can not modify the editions/features as they have access to the DB on-premises

    what is the best way to handle deployment of abp commercial in this scenario?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I think you should hardcode tenant and features when publishing and always use DefaultTenantStore, NullFeatureStore.cs. because they will not read data from the database .

    See https://docs.abp.io/en/abp/latest/Multi-Tenancy#example-define-tenants-as-hard-coded https://github.com/abpframework/abp/blob/42f37c5ff01ad853a5425d15539d4222cd0dab69/framework/test/Volo.Abp.Features.Tests/Volo/Abp/Features/TestFeatureDefinitionProvider.cs

  • User Avatar
    0
    buaziz created

    Looks promising, Thanks.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11